How to open a port (50000)?

October 12, 2014 3.1k views

Hello, i'm new here, and i'd like some help please :p I want to open a port because one of my progams (Vuze) needs it. Would you help me with it or show me a link to a tutorial please?

4 Answers

All ports should be open by default. If you can't access port 50000, please post the output of sudo iptables -L -n -v and sudo netstat -plutn

root@vPs:~# sudo iptables -L -n -v
Chain INPUT (policy ACCEPT 36 packets, 3104 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 28 packets, 3376 bytes)
pkts bytes target prot opt in out source destination

root@vPs:~# sudo netstat -plutn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 873/sshd
tcp6 0 0 :::22 :::* LISTEN 873/sshd

A port has to be bound to an application or service before it could be opened (which usually happens automatically). The output of iptables and netstat when you run it said that there are no existing firewall rules and only SSH is listening (on port 22), respectively, unless you cut off the rest of the output of netstat. If you installed vuze and run it, it should have opened some ports automatically. Try to run vuze and run again sudo netstat -plutn.

thanks you both for your answers, they helped me a lot! I downloaded vuze again, and it solved the problem :) thanks a lot. Just have to figure out how to use it now X)

Have another answer? Share your knowledge.