Issue with TCPClient.GetStream

Hi everyone,

I'm having a problem with a PPC app I'm working on. It has to transfer xml files back and forth to a server. Right now, I'm just trying to debug the network code with it sitting in the doc and running in debug mode. I am using the TCPClient and TCPListener classes to handle communications. Communication from the PPC to the server (the workstation it's connected too) works fine. The file gets shot down the pipe with no problem. But when the PPC has TCPListener running and the server tries to connect, I get an exception: "No connection could be made because the target machine actively refused it"

Just to clear off the simple questions, I'm using the actual IP (The workstation and PPC appear to have the same IP), and the PPC->Server transfer works perfectly.

Is this an issue with ActiveSync Or is there something I'm missing I have the 'Allow network connections' option turned on in the connection settings, but it doesn't seem to change anything.

-Rick



Answer this question

Issue with TCPClient.GetStream

  • mary jane

    Yes, it is an issue with ActiveSync. If you connect over the network the it should work.
  • Issue with TCPClient.GetStream