Service Portal
If a forwarded port appears closed or filtered, it does not necessarily mean that port forwarding is not working.
Common causes include:
Important: The port numbers below are examples only. Replace them with your own assigned ports.
Run the following command on your server:
ss -lntup | grep <PORT>
Examples:
ss -lntup | grep 25091
ss -lntup | grep -E '25091|25092|25093'
If no result is returned, no service is currently listening on that port. The port may appear closed even when port forwarding is configured correctly.
Run the following command as root and keep it running while testing the port from another network:
tcpdump -ni any 'port <PORT>'
Examples:
tcpdump -ni any 'port 25091'
tcpdump -ni any 'port 25091 or port 25092 or port 25093'
This test works for both TCP and UDP traffic.
Test from a different network, such as a mobile hotspot, another office, or another VPS. Testing from the same local network may produce inaccurate results.
Test a single port:
nc -vz <PUBLIC_HOST_OR_DOMAIN> <PORT>
Test a port range:
nmap -Pn -p <START_PORT>-<END_PORT> <PUBLIC_HOST_OR_DOMAIN>
nc -u -vz <PUBLIC_HOST_OR_DOMAIN> <PORT>
UDP is connectionless, so the result shown by the client may not always be clear. For UDP testing, checking incoming packets with tcpdump on the server is usually more reliable.
If you are unsure whether your application is listening correctly, you can temporarily open a test listener.
Run on the server:
nc -lvkp <PORT>
Test from an external network:
nc -vz <PUBLIC_HOST_OR_DOMAIN> <PORT>
Run on the server:
socat TCP-LISTEN:<PORT>,reuseaddr,fork SYSTEM:"echo 'port <PORT> OK'"
Test from an external network:
nc <PUBLIC_HOST_OR_DOMAIN> <PORT>
If you receive a response such as port 25091 OK, the TCP connection is working.
Run on the server:
nc -u -lvkp <PORT>
Test from an external network:
echo test | nc -u -w1 <PUBLIC_HOST_OR_DOMAIN> <PORT>
Check the server terminal or tcpdump output to confirm that the UDP packet arrived.
The issue is usually on the server side:
127.0.0.1The issue may be related to the forwarding or network configuration:
If you need assistance, please provide:
ss -lntuptcpdump outputA port appearing closed or filtered does not automatically mean that port forwarding is not working.
The quickest way to confirm the connection is:
tcpdump on the serverIf packets reach the server, the forwarding path is working for the tested protocol.