Forum / NoMachine for Linux / No external IP
- This topic has 6 replies, 2 voices, and was last updated 23 hours, 26 minutes ago by Britgirl.
-
AuthorPosts
-
December 18, 2024 at 19:11 #51149OnoOrsoParticipant
Hello everyone. I know the forum is full of people who keep asking how to solve this problem, but I’ve looked at 20 different requests and I haven’t been able to solve it in any way. It just cannot find any external IP and therefore I cannot configure UPnP to redirect external port to internal 4000. Pls give me any possible solution to this problem. I would be very sorry not to be able to use NoMachine cause using it on the LAN (which works) works very well and I don’t think there is other software for Remote Desktop on Wayland made so well.
NoMachine server running on nobara linux (fedora based), linux version 8.14.2
1) yes, EnableUPnP is uncommented in server.cfg
2) yes i have UPnP option enabled in router
3) firewall says port 4000 tcp and udp are both openAttachments:
December 19, 2024 at 11:44 #51161BritgirlKeymasterHi, it could be a firewall issue. We have observed similar behaviour when after enabling ufw firewall, UPnP port mapping is not working.
In that case you can allow incoming UPnP traffic from your router by executing the following command:
sudo ufw allow from 192.168.1.1 port 1900 to any proto udp
(where 192.168.1.1 is a router address). After allowing this traffic, you can initiate UPnP mapping by running:
sudo /etc/NX/nxserver --upnpmap
Once done, UPnP should be operational on your machine. Remember to repeat this process on every machine where UPnP functionality is required.
Note: To find your router’s IP address, you can use the following command:
#ip route | grep default
If you’re using any additional outer firewalls, ensure to add a similar firewall rule to allow UPnP traffic as mentioned above.
December 19, 2024 at 16:23 #51162OnoOrsoParticipantI’m on nobara linux (which is a Fedora based distro) and I don’t have ufw (as far as I know it’s ubuntu’s firewall), I tried running:
sudo firewall-cmd –add-rich-rule=’rule family=”ipv4″ source address=”192.168.1.1″ port port=”1900″ protocol=”udp” accept’ –permanent
but this didn’t help at all as i still can’t see the external IP after running “sudo /etc/NX/nxserver –upnpmap”
December 20, 2024 at 09:13 #51167BritgirlKeymasterI don’t have ufw (as far as I know it’s ubuntu’s firewall)
Sorry my bad.
Disable any FW you have (temporarily) and try again.
Alternatively, you could try port-forwarding
How to connect over the internet to NoMachine behind a NAT router
https://kb.nomachine.com/AR04S01122December 20, 2024 at 13:09 #51168OnoOrsoParticipantDisable any FW you have (temporarily) and try again.
I disabled firewalld and now it works perfectly… thanks, now i just need to find out why it doesn’t work and how to run it without having to disable the firewall. Can you help me? Which ports should I open and with which protocol?
December 20, 2024 at 15:20 #51169OnoOrsoParticipantNow there is another problem, I would be happy if you could help me here too. When i start the computer, at the first connection (both LAN and over the internet) the screen is visible but the remote cursor does not correspond to the real one, the real one is moved to the left by a few centimeters and is unusable. From the 2nd connection onwards the cursor works perfectly but what i can see is only a black screen with cursor moving around it.
December 20, 2024 at 18:17 #51173BritgirlKeymasterCheck your FW setting:
sudo firewall-cmd --get-default-zone
If it returns “public” – this maybe the problem. The workaround is to change the zone or adding a different range. If you want to continue using “public” zone, then do the following:
sudo firewall-cmd --zone=public --add-port=1025-65535/udp --permanent sudo firewall-cmd --reload sudo /etc/NX/nxserver --upnpmap
About the cursor issue and black screen, we need logs in order to understand why that is happening. Send us full logs (from both sides) so we can check them. You can extract them using the instructions here: https://kb.nomachine.com/DT07S00243. Send them to forum[at]nomachine[dot]com. Please use the title of this topic as the subject of your email. Thanks!
-
AuthorPosts
You must be logged in to reply to this topic. Please login here.