On Monday, March 12, 2007 6:21 PM , Vincent Schmid <[EMAIL PROTECTED]> wrote:
>> Hello, >> >> I have two computers with fixed IP addresses. On machine A I have a >> TCP server application, on machine B I have a TCP client >> application. Both make use of TTCPBlockSocket. >> >> When both machines are connected through a switch, the connection >> can be established between the two applications. When I connect the >> two machines directly through a cross-cable, The client application >> cannot connect to the server : Error 10061, connection refused. >> However, both machines can ping the other and the Windows file >> sharing works ! >> check (in this order) 1) if the server is really listening on the given port. Use netstat -an to see t if the port is in LISTEN state 2) check if the server socket is bound to the proper IP address (if it uses anything other than 0.0.0.0 = any IP). Use netstat -an 3) check if the there is a firewall on PC with server (or pc with klient).Try to disable it 4) use Winshark to sniff packets on the server and client to see if an attempt to establish the connection goes through the wire I assume you have one network card in the PCs. If you have multiple NICs you have to be sure teh PCs are interconnected by the proper interfaces. In other case you may hava a routing issue Regards Dalibor Toman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
