LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Strange problem with Fedora (https://www.linuxquestions.org/questions/fedora-35/strange-problem-with-fedora-654537/)

montylee 07-09-2008 04:18 AM

Strange problem with Fedora
 
I have a strange problem with Fedora.

I created a socket program with client and server. Now when i use Red Hat 9 machine as a server and Fedora Core 9 as a client, i am able to connect from the client (Fedora Core 9) to the server (RHL 9), but when i do the opposite i.e. use FC 9 as a server i am unable to connect to the server.

I get this error:
telnet: connect to address 10.112.37.54: No route to host

Here 10.112.37.54 is the IP of the FC9 machine on my network.


The above problem can be reproduced by running this program:
http://beej.us/guide/bgnet/examples/selectserver.c

run it on the FC 9 machine (i even tested it on FC4, still same problem), and then from any other machine write this:
telnet 10.112.37.54 9034

here 10.112.37.54 is the IP of the FC machine. After this, the following error message appears:
telnet: connect to address 10.112.37.54: No route to host


Can anybody help me with this?

chrism01 07-09-2008 08:51 PM

'No route..' prob means there's no entry in the /etc/hosts file on the 'client' to tell it about that machine, or there's no DNS server.
Can you ping it?
Also, by default, in modern distros like Fedora, telnetd (the server) is disabled for security reasons.
See directory /etc/xinetd.d

montylee 07-10-2008 08:11 AM

i don't think there's any problem in the client. The problem is when i use FC9 machine as a server. And there's no need of any DNS entry as i am directly giving the IP. I can ping the machines.

I don't have telnetd installed on my FC9 machine but the problem is not only with this telnet program. The problem comes when i use sockets and try to use FC9 as a server. The clients are not able to connect to my FC9 server.

I have disabled SE Linux and disabled the Firewall still the problem persists. I faced similar problems in FC4 too. I think this issue comes only with Fedora as i am able to use Ubuntu as a server on my LAN.


All times are GMT -5. The time now is 07:19 PM.