Skip to content
VpnHood!

Troubleshooting

What to do when VpnHood! SERVER runs but something keeps it from working, on a managed or a standalone server.

Address already in use

The server runs, but apps cannot connect. Its log, /opt/VpnHoodServer/storage/logs/server.log, shows Address already in use for its port, and No working tcp end point is available after configuration when it could open none of its ports. A managed server shows the same error in VpnHood! MANAGER: see A server shows an error.

Another program on the machine already uses the server's port, 443 unless you changed it. Most often it is a web server such as nginx or Apache, another VPN or proxy, or a second copy of VpnHood! SERVER.

To find it, run this on the server, with your port if it is not 443:

sudo ss -ltnp 'sport = :443'

In what it prints, the program's name follows users:: users:(("nginx",pid=812,fd=6)) is nginx.

Then do one of these:

  • Stop the other program if you don't need it. For a service such as nginx, this also keeps it from starting at boot:
    sudo systemctl disable --now nginx
  • Move the server to another port, as in Set your server's IP addresses, or for a managed server in MANAGER, as in Change an address. Keys you have already given out carry the old port: see Keys you have already given out.
  • If the program is VpnHoodServer, another copy of the server runs, such as one installed on Linux and one in Docker. Keep one, and uninstall the other: see Uninstall on Linux or in Docker.

Then restart the server with sudo systemctl restart VpnHoodServer, or with sudo docker restart VpnHoodServer in Docker, so it opens its port again.