I'm designing a network game and I specified a port for my game. How can I program the client side to find the ip of local servers with my specified port number. What I mean is how can I find ip of server by knowing opened port?
Asked
Active
Viewed 1,950 times
1
-
Broadcast is the best option , your client should send a broadcast packet to find the server. Otherwise the client must be told the IP of the server manually. – thecreator232 Jan 21 '14 at 02:32
-
@thecreator232 Can you explain a little more? Or show me some code! – hamidfzm Jan 21 '14 at 10:53