Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Linux machine.

The network has a very restrictive firewall config.

I want to reach this machine from a Windows computer using port 4449.

How can I test if communication is working correctly?

  • Open a socket and listen on port 4449. In Linux how? Using which utility?
  • Test the connection from Windows: telnet, or something else?
share|improve this question
What Linux distro do you have? – Andrejs Cainikovs Jun 27 '11 at 7:56
up vote 2 down vote accepted

netcat is an utility that is included in many Linux distributions.

To listen on TCP port 4449 try

nc -v -l 4449

And on the client telnet should be perfect

share|improve this answer
this will do !! Thanks !!! i had a huntch it was netcat , but didnt know how to do it .... – user70247 Jun 27 '11 at 9:26

what do you mean when you say "the network has very restristive firewall config"? What firewall you're using? By iptables is done so:

iptables -A INPUT -o eth0 -p tcp -m tcp --dport 4449 -j ACCEPT

To test:

telnet o 4449
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.