J
JonF
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...
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...