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#
sysadminhelptutorialquestion
7 Posts 7 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 there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

    T L S N M 5 Replies Last reply
    0
    • A AlexPizzano

      say there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

      T Offline
      T Offline
      teejayem
      wrote on last edited by
      #2

      You definately need the IP (or hostname) of the server in order to connect to it. That would be like someone sending you an email without your email address! If you don't know the IP you could do an ip scan on your network to find any ip's with port 2000 open.

      Don't be overcome by evil, but overcome evil with good

      1 Reply Last reply
      0
      • A AlexPizzano

        say there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        1. You must find it manually. It likes "find house number 2000", but in which city ? which street ? 2. Read first, how TCPIP works. You cannot connect to server if you don't know the IP address.

        1 Reply Last reply
        0
        • A AlexPizzano

          say there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

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

          You asked this question yesterday and got the same answers. You can't do it. You only option is to enumerate all the IP address on the network and ping them to test if the port is open. As several people have said, it's like asking where to find house number 103 but without telling them which road it's on.

          Simon

          1 Reply Last reply
          0
          • A AlexPizzano

            say there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

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

            again, 1) you need to know the server ip in order to connect to it. 2) do you want to know if it´s possible for you as a client to connect to a server without giving your ip? no When the designed application on the server asks the client´s ip when he tries to connect, if the server can´t get it, he doesn´t grant acess to the client. i woulnd´t!!! :wtf: Do you want to make a fake ip, be somewhat stealth mode? is that it? i don´t how to do that but, i think you can find something of that to download.

            A 1 Reply Last reply
            0
            • N nelsonpaixao

              again, 1) you need to know the server ip in order to connect to it. 2) do you want to know if it´s possible for you as a client to connect to a server without giving your ip? no When the designed application on the server asks the client´s ip when he tries to connect, if the server can´t get it, he doesn´t grant acess to the client. i woulnd´t!!! :wtf: Do you want to make a fake ip, be somewhat stealth mode? is that it? i don´t how to do that but, i think you can find something of that to download.

              A Offline
              A Offline
              Abdul Sami X
              wrote on last edited by
              #6

              simple solution would be ...search the IP with in the LAN and match its port number.

              Sr. Software Engineer Irevna, India

              1 Reply Last reply
              0
              • A AlexPizzano

                say there's a server program lauch in a LAN network and it is listening at port number 2000. 1. Anyone has an idea on how to obtained the ip address for the above mentioned server? 2. Or is it possible to communicate to this port with the condition that ip address for the above server was not given. Hacker pls help

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

                scan the your Lan ip's using dos command " net view" it would give all machine names and then from that machine names get their corresponding ip's. then combine ipaddress and the port u want to scan, thru this code for (int CurrPort = 1; CurrPort <= 25; CurrPort++) { TcpClient TcpScan = new TcpClient(); try { // Try to connect TcpScan.Connect("192.168.0.1", CurrPort); // If there's no exception, we can say the port is open MessageBox.Show("Port " + CurrPort + " open"); } catch { // An exception occured, thus the port is probably closed MessageBox.Show("Port " + CurrPort + " closed"); } }

                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