How to designate single UDP port for server?

Forum / General Discussions / How to designate single UDP port for server?

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33397
    typical2
    Participant

    I’m trying to get NoMachine servers on both Windows and Linux to use UDP on a designated port to speed up connections.

    I only saw on the support page that it uses a random port within a range and tries to negotiate with that range. This is extremely infuriating for use cases which have to flow through multiple firewalls filtering on specific ports and protocols. I would like to be able to designate a UDP port to bind to so I can have firewall rules made for that specific combination.

    I found a config file in Linux under ~/.nx/config/player.cfg, but changing the UDP port in there and restarting the server doesn’t make the connection flow over UDP.

    I don’t even know where the config file is on Windows. It definitely isn’t in the GUI…

    Why is the documentation so lacking here?

    #33414
    Carin
    Participant

    Hi ehammer99,

    There is a server.cfg configuration key to configure UDP port.
    You can specify a port range, in the form of minport-maxport, to use UDP communication for multimedia data. Alternatively, you may specify a comma-separated list of ports or a single port. In this last case, only one connection will be able to use UDP at any given time. As a note, the Internet Assigned Numbers Authority (IANA) suggests the range 49152 to 65535 for dynamic or private ports.
    UDPPort 4011-4999

    This article explains where you can find the configuration files: https://knowledgebase.nomachine.com/AR02N00877

    #33420
    typical2
    Participant

    Just changed that cfg file on Linux (Debian 10). Looking at logs its attempting to connect to the CLIENT on port 4001 (my chosen udp port). Is there not a way to connect to the SERVER on udp port 4001?

    #33643
    Carin
    Participant

    Hi ehammer99,

    Did you set port 4001 on both sides? On the server-side in server.cf and on the client-side in the player UI or in the session file?

    For UDP connections (only), the NoMachine procedure is always that the server is connecting to the player first. Only in the case that fails, it will try to connect to the server.

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

This topic was marked as solved, you can't post.