LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2011, 09:43 PM   #1
juiceb0x
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
Netcat accpeting remote connections


I am using Fedora 14, and I want to configure Netcat so it accepts connections from other computers on my LAN. I can only connect to it from localhost. Like if I do
this:

netcat -l -p 10080 # I know its a weird port to use, but other ports are in use

And then I Firefox over to it from localhost, I can see the data Firefox sends to the Netcat listener. However, if I try to connect to it from another computer on the LAN, the connection times out. I even made sure the firewall isnt blocking the connections. I went to system > administartion > firewall and configured it to allow port 10080.

So what am I doing wrong?
 
Old 11-14-2011, 04:05 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
If you have a default install I would first check to see if the firewall is turned on.


Try running (as root)

Quote:
iptables -L
If you get something similar to below then the firewall is off however if you get lists of rules then that may be why you can't connect to your listening netcat.

Quote:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
1 members found this post helpful.
Old 11-14-2011, 02:04 PM   #3
juiceb0x
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you, it worked. *closes thread*
 
  


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
Fedora 13 Netcat remote connection problem bonewagon Linux - Software 2 03-07-2011 04:23 PM
VNCServer not accpeting connections ALInux Linux - Networking 3 07-25-2006 12:04 AM
X and remote connections? jonsson Linux - Newbie 6 11-15-2004 12:25 AM
Mail server not accpeting connections nnadeau Linux - Networking 9 01-16-2002 01:00 AM
Mail server not accpeting connections nnadeau Linux - Security 1 01-14-2002 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 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