MooClick S_GetServerIP Not Working!
Hi all!
In a Server, i need to have the ip to the hoster!!! I have search without result... and S_GetServerIP is not working, it receive 0.0.0.0!
Please help me and find a way to get it... <img src="/center/images/graemlins/frown.gif" alt="" />
Sry if this post is a bit noobie <img src="/center/images/graemlins/wink.gif" alt="" />
Re: MooClick S_GetServerIP Not Working!
Use MooSock get local IP. Works when MooSock is/host connected. I havent try this with MooClick, but probably it would work too only when MooClick is connected/host.
Re: MooClick S_GetServerIP Not Working!
Because computers can have many different network adapters, there is no way of knowing what local address the socket has before connecting.
In short: Like Blizna says, you can't get the local IP before the socket has been connected or bound.