LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-27-2013, 09:12 AM   #1
dh_
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
Unable to host servers.


Well, I get this issue with both my ethernet and wireless cards. Basically if I run “nc -l -p 1234” in one terminal and “nc localhost 1234” in another, anything I type in one will not show up in the other. The system calls that set everything up seem to complete successfully, but the data just doesn't reach the server for some reason. Any ideas?

EDIT: By the way, I can successfully send data to a server hosted somewhere else using nc. It just fails when I try to send data to my own server.

Last edited by dh_; 01-27-2013 at 09:15 AM. Reason: fixed a grammatical error and added more info.
 
Old 01-27-2013, 12:47 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
presumably it's related to iptables rules, show us "iptables -vnL"
 
Old 01-27-2013, 10:12 PM   #3
dh_
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Turns out I just needed to put the lo device up. Quite weird, I think, since not even my private network address would work.
 
Old 01-28-2013, 03:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
lo should *always* be up, any ideas why it wasn't?
 
Old 01-28-2013, 10:25 AM   #5
dh_
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Well, I run the same distribution on two computers (Slackware 14.0) and it seems lo gets put up by the rc.inet1 script. I installed wicd, which is in the extras directory, on my laptop and because of that it loads rc.wicd instead of rc.inet1, which doesn't put lo up. I've fixed this by adding “ifconfig lo up” to rc.local.
 
  


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
How to Use Vhosts To host Multiple Servers On LAN (Without Domain Names)? Lewy1 Linux - Server 8 02-23-2012 02:51 PM
[SOLVED] Best way to host 2 public servers from 1 external IP firehak Linux - Server 5 12-23-2010 01:11 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 11:18 AM
YOU - Error while requesting servers: Couldn't connect to host VIR3NT Suse/Novell 1 04-24-2006 04:46 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 02:24 PM


All times are GMT -5. The time now is 08:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration