trying to connect to a server over a LAN!!!

Started by
1 comment, last by hplus0603 17 years, 10 months ago
I'm using the ENet package for my project - I'm saying that because i don't know if my question is a generic networking concept or relates only to the package used - And at last i've managed to bind two computers together over a LAN connection. the problem is that i manualy enter the IP address of the PC that i run the server on it into my client app so they get connected. what i want to do is making my client app autamatically detect an existing server over the LAN ... like other games do!
Storms .. Wind and Fire .. READ MY CALLS
Advertisement
Send a UDP Broadcast that requests all servers to respond with thier IP Address. This will give the client a list of severs. Now if you want to be a bit paranoid, do the request a few times, a UDP broadcast is not guaranteed to be recieved so you can add a little redundency.

theTroll
Check the Forum FAQ!
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement