Firewall blocking UPnP

Forum / NoMachine for Linux / Firewall blocking UPnP

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51115
    liveevil
    Participant

    Hello all,   I hope you’re well. I’m posting because I’ve been struggling with getting UPnP working. When I have my firewall disabled, UPnP works. When the firewall is on, I get the error in the “Server Ports” settings, “Failed to map the port using UPnP”. I have my the default port, 4000, forwarded in my router. I also have rules created using Gufw and ufw to allow traffic through. I’m currently using Ubuntu Studio 24.10 w/ KDE Plasma, NoMachine free version 8.14.2.  l’d really appreciate any help that could be given. Thank you in advance!

    #51148
    fisherman
    Moderator

    Since you’ve already manually forwarded port 4000 on your router, utilizing UPnP for the same purpose might be unnecessary.

    If you still want to use UPnP, I recommend enabling communication from your network or router to your Ubuntu Studio. You can do that by executing.
    sudo ufw allow from 192.168.1.0/24

    Replace 192.168.1.0/24 with the appropriate subnet for your network.
    I would like to add a note that UPnP is using UDP port 1900 and TCP port 2869, and you might need to enable its communication depending on how your firewall is configured.
    running
    sudo ufw allow 1900/udp
    sudo ufw allow 2869/tcp
    sudo ufw reload

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Please login .