Multiple IP's Mapping to 1 Computer?
I am working on making a server browser (so the clients in my game can search their LAN for servers). My current algorithm is it sends one packet to every computer with an IP of MyIP.MyIP.MyIP.x. The problem we're running into is that the server gets 1-4 packets each time the client searches. Why is this happening? Does anybody have any ideas? The result is that the server responds to the same client with multiple packets. Any ideas would be greatly appreciated, Thanks in advance.
OpenGL Revolutions http://students.hightechhigh.org/~jjensen/
You may be sending the message to the broadcast address, or the server machine may have multiple interfaces.
The trick should be to send to send broadcasts in the first place.
Have the server only respond from its main (or first) IP address and the client use that IP rather than any other.
Mark
The trick should be to send to send broadcasts in the first place.
Have the server only respond from its main (or first) IP address and the client use that IP rather than any other.
Mark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement