LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08: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 08:15 AM. Reason: fixed a grammatical error and added more info.
 
Old 01-27-2013, 11:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
presumably it's related to iptables rules, show us "iptables -vnL"
 
Old 01-27-2013, 09: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, 02:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
lo should *always* be up, any ideas why it wasn't?
 
Old 01-28-2013, 09: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



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 01:51 PM
[SOLVED] Best way to host 2 public servers from 1 external IP firehak Linux - Server 5 12-23-2010 12:11 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
YOU - Error while requesting servers: Couldn't connect to host VIR3NT SUSE / openSUSE 1 04-24-2006 03:46 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:36 PM.

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