Identify a Server in LAN

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyamv
    New Member
    • Jan 2008
    • 17

    Identify a Server in LAN

    Hi all,

    Can any one suggest me how to identify the server's ip address in a LAN
    using .Net??
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    If you know the servers name you can ping the name and it will get you an IP address.

    Comment

    • priyamv
      New Member
      • Jan 2008
      • 17

      #3
      Originally posted by Plater
      If you know the servers name you can ping the name and it will get you an IP address.

      i am developing a chat application in which the first person who runs the application becomes the server.The next person who signs in has to find that server and then connect to it.. Is this possible to do..???

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Well your "server" would be listening for connections yes? Make a special case for listening for a special "are you a chat server?" command.
        Then whenever you start up a chat application, have it broadcast your "are you a chat server?" command. If there is a server out there it would respond, letting you know that it is. You can then connect to it.

        Comment

        Working...