Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > problem with netcat in knoppix 4.0

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-13-2007   #1 (permalink)
Just Joined!
 
Join Date: Feb 2007
Posts: 4
problem with netcat in knoppix 4.0

I ran netcat server on knoppix 4.0 laptop and netcat client on a fedora core 5 laptop.
on the knoppix
nc -l 9000
on the fedora laptop
nc 192.x.x.x 9000

I didn't connect. There is no firewall on either my machines.
It worked among fedora laptops.

Even if i did like this on the knoppix laptop and it still didn't work.
on one consle
nc -l 9000
on another console
nc localhost 9000

It said: "Knoppix 127.0.0.1 9000 (?) : Connection refused"

Please show some pointers.
Thanks,
homy1 is offline  


Reply With Quote
Old 02-13-2007   #2 (permalink)
Linux Enthusiast
 
likwid's Avatar
 
Join Date: Dec 2006
Location: MA
Posts: 649
Check if the port is indeed open and listening with
Code:
netstat -l
likwid is offline   Reply With Quote
Old 02-13-2007   #3 (permalink)
Just Joined!
 
Join Date: Feb 2007
Posts: 4
It's certain that the port is not opened.
But I dont know how to get it opened.
I guess when we do a command like this "nc -l 9000" it will open the port automatically since I did such thing with fedora core and it works.
homy1 is offline   Reply With Quote
Old 02-13-2007   #4 (permalink)
Linux Enthusiast
 
likwid's Avatar
 
Join Date: Dec 2006
Location: MA
Posts: 649
Ok well netstat -l will tell you if netcat is indeed listening. Then you'll want to check your iptables with
Code:
iptables -L
likwid is offline   Reply With Quote
Old 02-14-2007   #5 (permalink)
Just Joined!
 
Join Date: Feb 2007
Posts: 4
Well I did check iptables.
All ports are allowed.
There were no denies.

If somebody can verify on their knoppix machine that the following command works:
on one console
nc -l 9000
on another console
nc localhost 9000

mine doesn't work.

Thanks,
homy1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:39 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2