Mobile - Problem connecting to servers on local network
Posted: Thu 26 May 2011 13:32
Hello, i have the dotConnect for MySQL Mobile Standard 6.30.160. I'm developing an application in Visual Studio 2008 Visual Basic for Windows CE device.
I deployed my application on the device, device is connected to the same router as my PC wich run on Windows with MySql Server 5.1.57, but the problem is i cannot connect to it.
The error is : Can't connect to MySQL server on '192.168.1.13' (10061): Server did not respond within the specified timeout interval.
If I try to connect to a server that isn't in my network it works. Another strange thing is if i try to connect to '192.168.1.2' or '192.168.1.5' or any other ip from my sub net it gives same error, and the only active devices are my Windows CE device (192.168.1.100) and my PC (192.168.1.13).
This is my code:
Dim mConnectionString as MySqlConnectionStringBuilder
mConnectionString = New MySqlConnectionStringBuilder
mConnectionString.Port = mport
mConnectionString.Host = mServer
mConnectionString.UserId = mUser
mConnectionString.Password = mPassword
mConnectionString.Direct = True
mConnectionString.Database = mDatabase
mConnectionString.MaxPoolSize = 150
mConnectionString.Pooling = True
mConnectionString.Protocol = MySqlProtocol.Tcp
mConnectionString.ConnectionTimeout = 5
Dim mConnection as MySqlConnection = New MySqlConnection(mConnectionString.ConnectionString)
mConnection.Open()
I thought that it was my Windows CE Device, but i tryed on another device with windows mobile 6 and same error !
I deployed my application on the device, device is connected to the same router as my PC wich run on Windows with MySql Server 5.1.57, but the problem is i cannot connect to it.
The error is : Can't connect to MySQL server on '192.168.1.13' (10061): Server did not respond within the specified timeout interval.
If I try to connect to a server that isn't in my network it works. Another strange thing is if i try to connect to '192.168.1.2' or '192.168.1.5' or any other ip from my sub net it gives same error, and the only active devices are my Windows CE device (192.168.1.100) and my PC (192.168.1.13).
This is my code:
Dim mConnectionString as MySqlConnectionStringBuilder
mConnectionString = New MySqlConnectionStringBuilder
mConnectionString.Port = mport
mConnectionString.Host = mServer
mConnectionString.UserId = mUser
mConnectionString.Password = mPassword
mConnectionString.Direct = True
mConnectionString.Database = mDatabase
mConnectionString.MaxPoolSize = 150
mConnectionString.Pooling = True
mConnectionString.Protocol = MySqlProtocol.Tcp
mConnectionString.ConnectionTimeout = 5
Dim mConnection as MySqlConnection = New MySqlConnection(mConnectionString.ConnectionString)
mConnection.Open()
I thought that it was my Windows CE Device, but i tryed on another device with windows mobile 6 and same error !