Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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,

  2. #2
    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

  3. #3
    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.

  4. #4
    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

  5. #5
    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,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •