LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   host to connect to itself through eth0 ? (https://www.linuxquestions.org/questions/programming-9/host-to-connect-to-itself-through-eth0-324/)

vlad 11-29-2000 03:13 PM

Please help.
In our project I need to establish TCP connection between two sockets on the same host. Normally it should be done over the "lo" local loop. But due to the run-time search for the IP of the destination, - I have to use "eth0" and use "dot IP" notation for the host.
DOesn't work.
Any services between same host sockets don't work.
Even ping.
System (kernel) doesn't allow through.

I appreciate any suggestions.

Vlad.

Disillusionist 02-01-2005 01:29 PM

Is this post still open?

Have you checked your /etc/nsswitch.conf file to ensure it's going to files before dns

Quote:

hosts: files dns
Also, check your /etc/hosts that your loopback reference is the same as you are trying to use:

Quote:

127.0.0.1 loopback lo


All times are GMT -5. The time now is 02:46 AM.