Jeremy wrote:
>
> I have almost finished my first network project (its a game simular to tetris
> with a mutliplayer mode). Yet there is still some things i would love to know
> to make it easier to use for the end user.
>
> Is there anyway to get the current ip address of the user (on a local area
> network, or/and on the internet). Is there anyway to scan a local area network
> to see if a server stack is running??
You must connect first to an address (X) and "hostAddress(X)" will
return local IP address.
For the second question, you can open sockets to each address and if one
stays open it means the server is up.
>
> Thanks for all the help.
>
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.