Hi,
I am relatively new and recently wrote a application using C#, compact .net
framework on Pocket PC. Everything works accordingly in emulator from Visual
Studio .Net. It can connect to server and perform whatever logic according
to my requests.
The problem only arise when I test run the same application on Mini O2.
After narrowing down the problem, I found it always fail at the second line,
which is the connecting... and was catched...
TcpClient f_Client = new TcpClient();
f_Client.Connect("192.168.1.2", 8000);
I hope someone kind enought to give me some ideas of solutions or
suggestions. I thought emulator supposed to be like the real thing.... what
happen?
Thanks for reading.
count black - 14 Jul 2005 09:03 GMT
Hi,
Are you sure that the IP is accessible from your PocketPC and GPRS?
When i was working on a similar project, i had problems with connecting
to LANs etc from my emulator to my PocketPC. Remember the emulator can
use your computers IP/internet connection, whereas the PocketPC uses
GPRS. If you are using GPRS remember that some mobile networks have Pat
and Nat translations to minimise security issues.
Cheers
Toby
Canon EOS - 14 Jul 2005 12:55 GMT
I am actually using WiFi on the Mini O2. It can even online using IE and
MSN.
On the exact same network, I successfully using my latop as the emulator,
and it work....
But problem is fail on the real device, Mini O2. It somehow refuse to
connect (the exact line of code giving problem)
Any ideas?
> Hi,
>
[quoted text clipped - 8 lines]
>
> Toby