Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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 xxx.xxx.xxx.xxx 4449
share|improve this answer

Your Answer

 
discard

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.