Public port forwarding sets to 0

Server Version#: Debian Bullseye
Player Version#: Newest.

Hello community,

I have a new problem with the port forwarding of my Plex server. I have activated the port forwarding on TCP/UDP for port 32400. When I now try to activate the remote acces I get the following error.

It keeps setting my WAN port on 0. I try to change this to another port, but it still gives problems.
I have also configured NGINX on my server. So below config.

“/etc/nginx/conf.d/plex.conf” [noeol] 54L, 1664B 18,1 All
server {
server_name plex.mavelin.be;

  location / {
      proxy_pass http://127.0.0.1:32400;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

      #upgrade to WebSocket protocol when requested
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
  }

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/plex.mavelin.be/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/plex.mavelin.be/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot


ssl_trusted_certificate /etc/letsencrypt/live/plex.mavelin.be/chain.pem; # managed by Certbot
ssl_stapling on; # managed by Certbot
ssl_stapling_verify on; # managed by Certbot

}

server {
if ($host = plex.mavelin.be) {
return 301 https://$host$request_uri;
} # managed by Certbot

  listen 80;
  server_name plex.mavelin.be;

  location / {
      proxy_pass http://127.0.0.1:32400;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

      #upgrade to WebSocket protocol when requested
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
  }

Any help? Thanks!

If you have a manual port forward, make sure to enable/check Manually specify public port and let Plex know what port you have opened.

Hi,

I don’t use a manual port. This are the ports that I have enabled.

Maybe that would then be a good step to troubleshoot your issue :innocent:

I don’t get it. I have opened the port that Plex uses. I also can visit and find the server. This means the port 32400 is open. It just won’t connect true a public port?

As @tom80H suggested, you should enable Manually specify public port and set it to 32400, if that’s the port on which you’re able to reach your server remotely. This tells Plex Media Server to advertise that port to be used for remote access. If you fail to do this, Plex will attempt to automatically configure a port forward on your router using UPnP.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.