Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

TcpClient work on emulator but fail  in real PocketPC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Canon EOS - 13 Jul 2005 21:15 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.