I have an application that synchronizes data from a web site to the pocket
pc. Within the application I have the following method to determine if there
is an available internet connection from the device.
internal bool isConnected() {
bool myValue = false;
//detect IIS connection
TcpClient tcp = new TcpClient();
try {
tcp.Connect(this.myServer, 8080);
myValue = true;
}
catch {}
finally {
tcp.Close();
}
return myValue;
}
This works correctly if either, the device is in the cradle or I am
connected via a wireless connection. However, when I am in the cradle and
have the wireless connection turned on, this routine always returns false.
Does anyone have any ideas on how to resolve this problem. Any suggestions
would be appreciated.
Paul T.
"smoody" <smo...@smoody.com> wrote in message
news:OWX$ULJzCHA.2916@TK2MSFTNGP09...
I have not tried this w/ C.
The value of myServer is a name for DNS lookup.
I do not have any information about the IP addresses assigned to the
wireless endpoint or the cradle connection.
"Paul G. Tobey [eMVP]" <ptobey...@instrument.com> wrote in message
news:OKf9tXJzCHA.2648@TK2MSFTNGP11...
I'd suggest that you try this in C, so that the .NET CF can be eliminated as
the source of the problem, too.
Paul T.
"smoody" <smo...@smoody.com> wrote in message
news:OJj1wnJzCHA.1712@TK2MSFTNGP10...
http://www.symbolictools.de/public/pocketconsole/applications/nettools/
The IP address of the cradled interface will be in the 192.168.55.x subnet,
as this is what ActiveSync uses.
Smoody,
Are you using a fully qualified domain name (FQDN) for the DNS lookup (i.e.
www.foo.com), or are you using a NetBIOS machine name (i.e. foo)?
--
Neil Cowburn
Technologist/Microsoft Windows Embedded MVP
Content Master Ltd.
"Paul G. Tobey [eMVP]" <ptobey...@instrument.com> wrote in message
news:Oza8PrJzCHA.2188@TK2MSFTNGP10...
Using an IP address didn't work as you suspected. I am not familiar w/
IPCONFIG for the Pocket PC. If this utility does exist for the PocketPC
where can I get it?
I was able to get the IP address for the wireless card. So far I have not
been able to get the assigned IP address for the active sync connection.
Scott
I was able to get the IP address for the wireless connection, the IP address
for both the wireless and activesync
"Paul G. Tobey [eMVP]" <ptobey...@instrument.com> wrote in message
news:Oza8PrJzCHA.2188@TK2MSFTNGP10...
Thanks for the information. I am using just the NetBios machine name and not
the fully qualified domain name.
Scott
"Neil Cowburn [MVP]" <ne...@online.cowburn.me.uk> wrote in message
news:OAQaD4JzCHA.2916@TK2MSFTNGP09...
"smoody" <smo...@smoody.com> wrote in message
news:O9hhK#JzCHA.2648@TK2MSFTNGP11...