From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Subject: RE: sockets on WinNT and UNIX 20 Mar 1997 19:10:29 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <009B1928.78F72240.12558.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de> Original-To: Philippe DOT Le-Parc AT doelan-gw DOT univ-brest DOT fr Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, you wrote: : I have made two small programs : a client send a message on a socket and : the server just respond. : When I compile both program on Unix (of course with gcc) and I execute : the two programs on Unix, it works. : When I compile both program on WinNT (with gcc-cygnus-2.7.1-960712) : and I execute the two programs on WinNT, it works. : But when I tried to make a connection between the client on WinNT and : the server on Unix, I have a "connection refused" message. Sounds like the classic byteorder problem! You probably forgot htons() on the port number, needed both on the client and server for portability. Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de) - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".