Client trying to find server

  • Thread starter ramollari
  • Start date
  • #1
437
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?
 

Answers and Replies

  • #2
NoTime
Science Advisor
Homework Helper
1,568
0
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.
 
  • #3
437
1
NoTime said:
You also need to know the port the server is listening on.
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.
 

Related Threads on Client trying to find server

  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
3
Views
2K
Replies
4
Views
2K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
6
Views
1K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
1
Views
7K
Top