Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I'm trying to use NetCat to transfer some files in my local network. The thing is that netcat seems not being opening ports. I mean when I Code: $ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Darkade's Avatar
    Join Date
    Feb 2008
    Location
    Puebla, Mexico
    Posts
    1

    Using NetCat to transfer files


    Hello, I'm trying to use NetCat to transfer some files in my local network. The thing is that netcat seems not being opening ports. I mean when I

    Code:
    $ nc -l 3333
    in my computer netcat seems to be listening to port 3333. But when from another computer I do

    Code:
    $ nc this_machine's_ip 3333
    I get some conection refused error, saying that the port ain't available.

    (UNKNOWN) [this_machine's_ip] 3333 (?) : Connection refused

    The ip is right since when I ping it it says the machine was found. I've also try to 'port forward' port 3333 to this machine but that wouldn't work neither.

    So, how can I make nc listen on that port? or is it that such port is blocked? or am I using nc in the wrong way?
    thanks

  2. #2
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    try using nc with -p option

    nc ipaddress -p 3333

Posting Permissions

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