Re: TCP Sockets over Wireless



Also one of the strange side effects, if the wireless adaptor is
enabled then the connection cannot be made, while if it is disabled the
connection is fine (while in the cradle obviously).

JonF wrote:
The PocketPC is connected fine, can browse the internet etc... I have
added a firewall rule which explicitly allows TCP traffic between
devices on the required port however that didn't help and had the
annoying side effect of blocking other traffic - in short I can't be
bothered to setup a proper set of firewall rules for a domestic
router...

Although I can still demo the project without the network functionality
it would be very useful...

Paul G. Tobey [eMVP] wrote:
DNS is *not used* to resolve anything when IP addresses are used.

I'm guessing firewall, as Chris mentioned. Works fine for me.

Paul T.


"JonF" <jf02@xxxxxxxxxxxx> wrote in message
news:1149259437.038135.38050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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...


.



Relevant Pages

  • HELP DEBUG: FreeBSD 6.3-RELEASE-p3 TIMEOUT - WRITE_DMA + other strange behaviour!
    ... I have a VERY strange behaving 6-3p3 with DMA tmieouts and network cards ... inet 8.9.10.11 netmask 0xffffffe0 broadcast 8.9.10.255 ... *sometimes* not everytime I'm loosing connection to xl0 or fxp0 ...
    (freebsd-stable)
  • Re: TCP Sockets over Wireless
    ... The PocketPC is connected fine, ... added a firewall rule which explicitly allows TCP traffic between ... connection not WiFi. ... private string svraddress; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Connection hanging after using(....) construct
    ... Thanks for the update - that is indeed strange. ... We can avoid the problem with the hanging worker thread at the ... > alternating Table1 and Table2 and finally closes the connection. ... > For testing instead of an endless loop we made a timeout of 30 seconds ...
    (microsoft.public.sqlserver.ce)
  • Re: PPC can not reach internet thru PC
    ... I think found a really strange solution to my problem. ... I tried syncing using the cell phone. ... Thinking back I was having problems connecting to a really strange wi-fi access point earlier on the day I discovered I was having problems syncing while docked. ... I've tried changing the WMDC connection proprerty from Automatic to Internet, ...
    (microsoft.public.pocketpc.activesync)
  • Re: Using Cool Edit notch filters
    ... No internet connection, printer etc. ... Does the noise change when the mic is placed at a different location? ... It would be strange if you get the same results. ... I have a new Edirol M-16DX which has 4 mic inputs and USB connection ...
    (rec.audio.pro)