Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Client trying to find server

  1. Nov 16, 2004 #1
    I'm trying to build a client-server networking application (in Java). There is a central server program (multithreaded, to handle multiple clients) and the client program. I don't know how the client is going to find the server. Does the user of the client program have to enter the IP address? What if the IP address is dynamic?
  2. jcsd
  3. Nov 16, 2004 #2


    User Avatar
    Science Advisor
    Homework Helper

    The client would have to enter the IP unless the IP is provided through DNIS, in which case you could use the server name. The same open call handles both forms.
    Servers rarely use dynamic IPs. Lots of game playing if you do.
    You also need to know the port the server is listening on.
  4. Nov 17, 2004 #3
    Yes you're right, although the port number of the server application can remain fixed and can be coded as a constant in the program.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook