LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2000, 03:13 PM   #1
vlad
LQ Newbie
 
Registered: Nov 2000
Posts: 3

Rep: Reputation: 0
Question


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.
 
Old 02-01-2005, 01:29 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to host localhost Scoobsky Linux - Networking 3 10-26-2005 11:47 AM
KMail could not connect to host joe2280 Linux - Software 1 09-26-2005 07:12 AM
Problem withInternet, DHCP, connect with eth0 down work, connect with eth0 up not zowey Linux - Networking 1 03-12-2004 10:05 AM
eth0 and host address tommytomato Linux - Newbie 2 12-03-2003 04:29 PM
Same host to connect to itself over eth0 ? vlad Linux - Networking 2 12-15-2000 10:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration