Y
Yechezkal Gutfreund
I have used tcpClients extensively in non-compact framework apps. I create
both the client and the server using the framework with the 1.0 and 1.1
frameworks.
However, I am now trying to do the same with a PPC2002 (emulator and with
real Ipaq 3900).
My dev environment is VS2003, but I have the SDK for PPC2002 installed.
Let's stick to the emulator, for now.
I get the dreaded:
+ err {"No connection could be made because the target machine actively
refused it" } System.Exception
I have tried the real name of the machine, "localhost", and "127.0.0.1", all
with port 1613.
The server is also written in .net and is very minimal. It does:
Int32 port = 1613;
IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
TcpListener myListener = new TcpListener(ipLocalEndPoint);
Tools.Debug(9, "Test PTMW Server Starting...");
myListener.Start();
// Program blocks on Accept() until a client connects.
for (;
{
Socket socketForClient = myListener.AcceptSocket();
Tools.Debug(8, "Client Connecting");
both the client and the server using the framework with the 1.0 and 1.1
frameworks.
However, I am now trying to do the same with a PPC2002 (emulator and with
real Ipaq 3900).
My dev environment is VS2003, but I have the SDK for PPC2002 installed.
Let's stick to the emulator, for now.
I get the dreaded:
+ err {"No connection could be made because the target machine actively
refused it" } System.Exception
I have tried the real name of the machine, "localhost", and "127.0.0.1", all
with port 1613.
The server is also written in .net and is very minimal. It does:
Int32 port = 1613;
IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
TcpListener myListener = new TcpListener(ipLocalEndPoint);
Tools.Debug(9, "Test PTMW Server Starting...");
myListener.Start();
// Program blocks on Accept() until a client connects.
for (;
{
Socket socketForClient = myListener.AcceptSocket();
Tools.Debug(8, "Client Connecting");