• 0 Posts
  • 18 Comments
Joined 10 months ago
cake
Cake day: January 27th, 2024

help-circle










  • Maybe it’s best to give your ISP a call to see what are your options. Here in Croatia port forwarding won’t work until you call them and tell them you want it, then they enable it.

    You can then also ask them how to access your router. But usually you find your router’s IP in your WiFi settings, enter that IP in your browser, and the password is usually printed on the bottom of the router. But check with your ISP.

    If they say you can port forward, it means they’ve given you a unique public IP. That IP can be either static or dynamic. Both will work, it’s just that the dynamic one will sometimes change and you’d have to send your friends the new one. You can always check your public IP by googling “what’s my ip”.

    If you get a dynamic one and it changes too often for your convenience, there’s a thing called “dynamic DNS” or DDNS. noip.com is a popular DDNS provider. It works by having an app that checks your IP every few minutes and sends it to noip. They issue you a host name, for example “mygreatservername.ddns.net” which always points to your current IP, and you give your friends that hostname.

    This might be a bit overwhelming, so keep us updated with your progress and we’ll help along the way.








  • This. Also, make sure the proxy is proxying websocket traffic as well. I do it with pure nginx like this:

    server {
        listen 80;
        server_name example.com;
    
        location / {
            proxy_pass http://192.168.1.100:8123/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
    
            # WebSocket support
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
    }