All, I am trying to use SuSE 8.0 for my socket programming project. I wrote a TCP socket server, with Perl (say on port 40180). I found that I couldn't telnet <hostname> 48010 to get connect to the TCP socket server. [... starting the socket server in background ...]
telnet deutsch 48010 Trying 127.0.0.2... telnet: connect to address 127.0.0.2: Connection refused
Typing "netstat -a" doesn't show anything related to my socket server. Yet, I could load my program on a Solaris machine and get it running. Could anyone give me some hints? Is it the /etc/inetd.conf setting or some other configuration? Thanks in advance, nelson
On Monday 19 August 2002 17.17, Nelson Ko wrote:
Typing "netstat -a" doesn't show anything related to my socket server.
My psychic powers are failing me unfortunately, I've tried but haven't been able to read your source code. Are you saying that you cannot see your server in state LISTEN at all? Look at *all* the ports, not just the one you expect it to be on.
Yet, I could load my program on a Solaris machine and get it running.
Would this solaris machine be on a SPARC? One error almost everyone makes the first time they work on things like this is to switch the bytes in the socket. remember that sparc is big endian but Intel is little endian. //Anders -- 'Deserves [death]. I daresay he does. Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement. For even the very wise cannot see all ends.' --Tolkien, The Lord of the Rings
participants (2)
-
Anders Johansson
-
Nelson Ko