How Do I Expose a Port in Linux?
Contents How Do I Open a Port in Linux? If You Want to Open an Incoming Tcp Port, Type the Following: Iptables -I Input -P Tcp –Dport 12345 –Syn -J Accept. If...
Contents
How do I open a port in Linux?
If you want to open an incoming TCP port, type the following:
- iptables -I INPUT -p tcp –dport 12345 –syn -j ACCEPT. If you want to open a UDP port (perhaps for DHT in Tixati), type the following:
- iptables -I INPUT -p udp –dport 12345 -j ACCEPT. …
- service iptables save.
How do you release a port?
- open cmd. type in netstat -a -n -o. find TCP [the IP address]:[port number] …. …
- CTRL+ALT+DELETE and choose “start task manager” Click on “Processes” tab. Enable “PID” column by going to: View > Select Columns > Check the box for PID. …
- Now you can rerun the server on [the IP address]:[port number] without a problem.
31 дек. 2011 г.