Finding IPs

BlitzMax Forums/BlitzMax Programming/Finding IPs

I'm trying to create LAN play for a game using the GNet Module. I can make the networking part work without a problem, but in order to connect to a remote computer the user must know the IP address of the remote computer. Is there anyway to get a list of remote IP address on a LAN?

Huh? Well if you know the subnet mask, you could use the networks broadcast address to broadcast a "request for server" and have the server respond with appropriate ID. This is only going to work on a LAN tho' as the first bridge/router is going to discard any broadcast datagrams.

For games outside a LAN, you'll need a master server which games can announce themselves too.

alright, thank you

http://www.blitzbasic.com/Community/posts.php?topic=51389