[SDL] SDLNet_resolveHost

santi santi.ontanon at terra.es
Sun Sep 18 03:58:40 PDT 2005


Hi,

I'm trying to obtain the IP of my local machine using SDL_net. If I 
haven't misunderstood the SDL_net manual, using:

IPaddress ip;
if (SDLNet_ResolveHost(&ip,0,network_port)!=0) {
    printf("Error\n");
} // if

should fill the "ip" variable with the IP of my machine. But this just 
returns 0.0.0.0, Have I misunderstood something?

thanks in advance

santi




More information about the SDL mailing list