Network gaming

BlitzMax Forums/BlitzMax Programming/Network gaming

necky(Posted 2005) [#1]
Hi,

I`m in the process at the moment of writing a simple network game so I`ve been looking at the wicked GNet command set in Blitzmax.
I`ve managed to, successfully, write my networking code but I can't figure out a way of having a host send out an invitation for other player to join without them knowing the IP address of my machine first.
Ideally, it would be cool if I could create a game with a keyword in one of the GNet slots that other players could pickup.
In short, I want to be able to have other players see what games are avaliable over the network which they can join. Having to work out the host's IP before I can connect is a bit lame.
Can anyone think of a way around this problem. I want to use GNet only if possible.

thanks.


TartanTangerine (was Indiepath)(Posted 2005) [#2]
YOu need to know the IP address to send the message.

We store the addresses in an SQL table, we do a look up and then connect to the IP.


necky(Posted 2005) [#3]
Thanks for your help but I still don't know how to go about getting all avaliable IPs on a network automatically. Do you have some sample code or a few tips on how to go about this?


Jay Kyburz(Posted 2005) [#4]
Do you mean for a "seach for games on the lan" button?


Beaker(Posted 2005) [#5]
This might help:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1413