Finding IPs

BlitzMax Forums/BlitzMax Programming/Finding IPs

kfprimm(Posted 2005) [#1]
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?


FlameDuck(Posted 2005) [#2]
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.


kfprimm(Posted 2005) [#3]
alright, thank you


Jeroen(Posted 2005) [#4]
http://www.blitzbasic.com/Community/posts.php?topic=51389