I would like to ask help from you. The program, what I made, doesn't connect to the Internet through the Wifi.
This is a Client, and it should connect to a serve, what I made also, based on a specific Ip adress.
When I connect the phone (FujitsuSimens Loox T830) to the usb, it connects well, but when I try it through Wifi, it doesn't connect.
If I try connect through an other computer, the connecting will be right also, therefore the Wifi has not problem.
if(WSAStartup( MAKEWORD(2,2), &wsaData) != NO_ERROR )
{
goto Exit;
}
fSockInitialized = true;
// Create socket
Socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP);
if(Socket == INVALID_SOCKET )
{
goto Exit;
}
clientService.sin_family = AF_INET;
clientService.sin_addr.s_addr = inet_addr(IP);
if (clientService.sin_addr.s_addr == INADDR_NONE || clientService.sin_addr.s_addr == INADDR_ANY){
goto Exit;
}
clientService.sin_port = htons(Port);
if(connect(Socket, (SOCKADDR*) &clientService, sizeof(clientService)) == -1)
{
goto Exit;
}
So when I connect the phone through usb, the connecting is good, but it doesn't want to use the Wifi.
Other phoneprogrammes can use the Wifi.
Have anybody an idea?
Thanks the answers!


Sign In
Create Account

Back to top









