Socket - connecting to ServerSocket on localaddress without knowing address

Hi,

At the moment I'm using ServerSocket to host a game on a certain port, and any clients need to know the local address of the server or it's IP to be able to connect.

What I'd like to be able to do is let the client have a quick connect option where it searches for a server on the network and is able to connect for one without knowing the servers address.

Is there a way of doing this or any tutorials I can have a look at?

Thanks

[469 byte] By [Blanchy123a] at [2007-11-27 2:28:30]
# 1
you have to create a portscanner based on the port of the game (eg 9876)the portscanner scans all the LAN and when he finds a pc with port 9876 open, he can try to connect
calvino_inda at 2007-7-12 2:40:42 > top of Java-index,Java Essentials,Java Programming...
# 2
All the server should maintain/store their info on a central server.The clients can get the list of servers from there.
jawadhashmia at 2007-7-12 2:40:42 > top of Java-index,Java Essentials,Java Programming...
# 3
A port scanner does not sound like a good idea.Is there a way of doing a broadcast?
Blanchy123a at 2007-7-12 2:40:42 > top of Java-index,Java Essentials,Java Programming...
# 4
check UDP Sockets.I think on LAN it is a good idea but on internet it is not a good practice.
jawadhashmia at 2007-7-12 2:40:42 > top of Java-index,Java Essentials,Java Programming...