AP Connection problems on DSi

Post Reply
Almamu
Posts: 25
Joined: Tue Apr 07, 2009 8:45 pm

AP Connection problems on DSi

Post by Almamu » Sat May 04, 2013 3:12 am

Some hours ago I started writing the networking part of a project which will connect two DS using a normal ap (Comtrend vr-3025un).

I configured the AP to assign always the same IP to both DS (3DS=192.168.1.2 and DSi=192.168.1.254) and ran my game with some basic net code on both consoles but the game never gets trough the "Connecting to WFC" message in the DSi (3DS works fine). After some google searches I found a test app written by the dswifi lib creator. Surprisingly it ran fine and connected without any problem on both consoles.

Im a bit lost right now and can't figure out what's the problem with the game. I'm using NFlib for graphics, so I'm using it's default makefile with WiFi support.

Here is some code of my project:

Code: Select all

struct in_addr net_ip, net_gateway, net_masl, net_dns1, net_dns2;

void Sys_NetInit()
{
    Com_Printf("Connecting to WFC\n");
    
    if(!Wifi_InitDefault(WFC_CONNECT))
    {
        Com_Error("Sys_NetInit: cannot connect to any ap\n");
    }

    net_ip = Wifi_GetIPInfo(&net_gateway, &net_mask, &net_dns1, &net_dns2);
}

int main(int argc, char** argv)
{
    // install exception handler
    defaultExceptionHandler();

    // load all the data from NitroFS
    NF_SetRootFolder("NITROFS");

    // init render
    R_Init(32, 8, 4);

    // init console output
    Com_Init("");

    // init fastfiles and assets system
    FastFile_Init();

    // init network system
    Sys_NetInit();

    // init server system
    Server_Init(2, SERVER_LAN); // it doesn't call any networking function

    Com_Printf("Connecting...\n");

    // [REST OF THE CODE]
}
Any idea why doesn't it work just in my game?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 17 guests