Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ip address

ip address

Scheduled Pinned Locked Moved C#
sysadmintutorialquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AlexPizzano
    wrote on last edited by
    #1

    say i was only given port numbers of all running servers in a particular LAN network. Any hint on how to obtained the corresponding ip addresses for these ports? Thanks in advance

    M H N 3 Replies Last reply
    0
    • A AlexPizzano

      say i was only given port numbers of all running servers in a particular LAN network. Any hint on how to obtained the corresponding ip addresses for these ports? Thanks in advance

      M Offline
      M Offline
      Mogaambo
      wrote on last edited by
      #2

      Get the Ipaddreses of your lan first u can use command "net view" it gives the machine names of all your network , then get the corresponding ipaddress of each machine, then combine ipaddress combination with your port list and ping, if u got answer then u have the correct ipaddress.

      1 Reply Last reply
      0
      • A AlexPizzano

        say i was only given port numbers of all running servers in a particular LAN network. Any hint on how to obtained the corresponding ip addresses for these ports? Thanks in advance

        H Offline
        H Offline
        Harvey Saayman
        wrote on last edited by
        #3

        i think you misunderstand how IP addresses and ports work think of a street with 10 buildings, each building has 10 flats and each flat has its own mail box. Now in this example the IP would be the buildings physical address and the port number would be the flat number. an IP points to a physical machine on a network and a port points to a specific service on that machine.

        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

        you.suck = (you.passion != Programming)

        M 1 Reply Last reply
        0
        • H Harvey Saayman

          i think you misunderstand how IP addresses and ports work think of a street with 10 buildings, each building has 10 flats and each flat has its own mail box. Now in this example the IP would be the buildings physical address and the port number would be the flat number. an IP points to a physical machine on a network and a port points to a specific service on that machine.

          Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

          you.suck = (you.passion != Programming)

          M Offline
          M Offline
          Mogaambo
          wrote on last edited by
          #4

          ok then use telnet if it gives the answer then u have the ip.

          S 1 Reply Last reply
          0
          • A AlexPizzano

            say i was only given port numbers of all running servers in a particular LAN network. Any hint on how to obtained the corresponding ip addresses for these ports? Thanks in advance

            N Offline
            N Offline
            nelsonpaixao
            wrote on last edited by
            #5

            you say server but you mean client i supose, right?! If you are the client you have to know the server ip in order to connect to network (how would you locate him otherwise?), but you don´t know the ip addresses of others clients like you. If you are the server you know the ip from all your clients ok?! because if you let then in your network you get their id (meaning ip address). Why don´t you download some server/client application here in codeproject to take a look at the code?!

            1 Reply Last reply
            0
            • M Mogaambo

              ok then use telnet if it gives the answer then u have the ip.

              S Offline
              S Offline
              Simon P Stevens
              wrote on last edited by
              #6

              No you don't. All you have is the IP of a server with that port open. You may have multiple severs with the same port open. All of your servers may have that port open. You don't know you've got the one you were looking for. There is no way to resolve a port address to an IP address.

              Simon

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups