UDP communications and IP Address

Z

Zahid

Hi,

I am having a problem with my PocketPC app with regards
to the UDP communications. Im using UDP to transmit data
back and forth between my PocketPC app and another .Net
app sitting on another PC on the network. This is only
done for testing purposes.

My pocketPC app acts as the listner and picks up data
whilst the other app sends data in bytes.
However I always get the following error message when
trying to execute the code to recieve data:

"The requested address is not valid in its context"

What does this mean?

So strange because when I run exactly the same code in a
standard VB.NET application the communications WORK and i
recieve data.

Could it be that the PocketPC is docked and connected to
my development PC therefore a conflict in IP Address? ie
that my PC uses the same IP Address as the PocketPC
because the PocketPC is connected to it?

How do I solve this?

Thanks in advance.
 
A

Alex Yakhnin [MVP]

I beleive you should be connected to the network not
through a cradle in order to have a PPC as a TCP listener
(server). You should be careful with this kind scenarios,
because in most cases a PPC's are connected to the network
with dynamically assinged IP address that will not be
known. You should try to make a PPC as a client in TCP/IP
communications.
 
A

Alex Feinman [MVP]

IIRC the ActiveSync connection does not support UDP passthrough. Get a
network card and try with a real network connection.
 
B

Butt Chin Chuan

I too faced the same problem here. I cannot really get my
application to work, whether TCP or UDP. Is it really
because of ActiveSync Connection? I only have the cradle,
don't have the network card. I'm a research student, so
whatever I have from my research supervisor, will have to
make do. Can this TCP and UDP connection be done in some
way using the cradle instead of a network card? Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top