Site Tools


hosting:networking:testing

Testing Ports

Verify that your port forwarding configuration is working correctly.

Testing ensures your services are accessible from the internet.

Overview

After configuring port forwarding, you need to test that external traffic can reach your server. This involves testing from inside and outside your network.

Test from Inside Network

Using browser:

Using command line:

  • `telnet localhost port`
  • `nc -zv localhost port`

Purpose:

  • Verify service is running locally
  • Confirm service is listening on correct port
  • Rule out local configuration issues

Test from Outside Network

Using phone on mobile data:

Using online port checkers:

  • Various websites can check if ports are open
  • Enter your public IP and port
  • Check if port shows as open

Purpose:

  • Verify port forwarding is working
  • Confirm external accessibility
  • Test from different networks

Common Issues

Port shows closed:

  • CGNAT blocking port forwarding
  • Double NAT configuration
  • Firewall blocking
  • Port forwarding rule not applied

Connection times out:

  • Router blocking connection
  • Service not running
  • Firewall on server blocking

Connection refused:

  • Service not listening on that port
  • Wrong port in configuration
  • Service crashed

Troubleshooting Steps

1. Verify static IP hasn't changed
2. Check firewall on server (ufw, iptables)
3. Confirm service is running and listening
4. Test with different port
5. Check for ISP blocking of common ports
6. Verify not behind double NAT

References

See Also

hosting/networking/testing.txt · Last modified: by 127.0.0.1