Re: TCP Sockets over Wireless
- From: "stu" <stuboy@xxxxxxxxx>
- Date: 2 Jun 2006 13:32:02 -0700
What do you have the device address and subnet set to?
Assuming you are connecting the wifi network correctly, you should be
able to see traffic generated by the device with a packet sniffer (like
ethereal). This assumes that you have things set up right on the
network to sniff and you're using a wifi card that can sniff. At
minimum you should be able to see an ARP message from the device to the
world, looking for the MAC address of 192.168.0.4. If you can see
this, you're device is correctly connected to the wifi network. Next
check for a TCP SYN packet going from the device to the desktop;
running the sniffer on 192.168.0.4 is probably your best bet as you'll
see everything that node can see coming from the mobile device.
stu =)
JonF wrote:
I am working with C# compact framework and have written some code which
allows communication over the socket layer, however I have encountered
the strange problem that I can only communicate over a physical dock
connection not WiFi. At the moment I have set the IP to be 192.168.0.4
which is the address my laptop running the server which the PocketPC is
trying to connect to.
I'm using the following code:
private string svraddress;
private int svrport;
private Socket connection;
IPEndPoint ip = new IPEndPoint(IPAddress.Parse(svraddress), svrport);
connection = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
connection.Connect(ip);
connection.Send(data);
I'm guessing that this may be some sort of DNS problem with resolving
the local network IP?
Any ideas/pointers appreciated...
.
- References:
- TCP Sockets over Wireless
- From: JonF
- TCP Sockets over Wireless
- Prev by Date: Re: Windows Mobile 5.0, .NETCFv2.0, and many sockets
- Next by Date: Re: Windows Mobile 5.0, .NETCFv2.0, and many sockets
- Previous by thread: Re: TCP Sockets over Wireless
- Next by thread: Re: TCP Sockets over Wireless
- Index(es):
Relevant Pages
|