Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] want to open my ports to play with netcat

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
inlogger
n00b
n00b
Posts: 7
Joined: Sun Feb 11, 2007 6:41 am
Location: Adelaide, Australia

[SOLVED] want to open my ports to play with netcat

  • Quote

Post by inlogger » Sun Feb 25, 2007 5:29 pm

I type

Code: Select all

nc -l 75
into one terminal, and then

Code: Select all

nc localhost 75
into another terminal. and I get

Code: Select all

(UNKNOWN) [127.0.0.1] 75 (?) : Connection refused
and it happens no matter what port I choose, except 631, which I have a cups server running on.

I've tried both as my normal user and as root with no difference.

I think it doesn't work because all my ports are closed, and getting netcat to listen to one of them isn't enough to open it. If so, how can I open my ports? Otherwise, what's going on?

I also have Gtk-gnutella, and it says my computer is firewalled. My computer is behind NAT, but I have a port forwarded for my gtk-gnutella which I've TOLD it to listen to, and still it's says that it's firewalled. Could this be the same problem?
Last edited by inlogger on Sun Feb 25, 2007 6:44 pm, edited 1 time in total.
Top
nielchiano
Veteran
Veteran
Posts: 1287
Joined: Tue Nov 11, 2003 2:57 pm
Location: 50N 3E

  • Quote

Post by nielchiano » Sun Feb 25, 2007 5:49 pm

a TCP port can be in 3 states:
  • non-existant, sometimes called "stealth": everything you send to it disappears
  • closed: when you try to open a connection, he refuses (ie, sends a reset packet back)
  • open
if you get connection refused, it's most likely just that, "closed", and probably not firewalled, since firewalls usualy do "stealth".

Maybe something: regular users aren't allowed to listen on ports < 1024; so you should try something higher.
you can also check

Code: Select all

netstat -l --inet 
to list listening ports
Top
inlogger
n00b
n00b
Posts: 7
Joined: Sun Feb 11, 2007 6:41 am
Location: Adelaide, Australia

  • Quote

Post by inlogger » Sun Feb 25, 2007 6:44 pm

I figured out why netcat wasn't working. I was typing "nc -l 75" when I should have been typing "nc -l -p 75" with a "-p" to specify what port to listen to (and open).

Don't know what it was making of my "nc -l 75" commands. :roll:
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic