Forum / NoMachine for Linux / No port number shown for my machine
Tagged: No external IP and Port Number
- This topic has 9 replies, 2 voices, and was last updated 3 years, 6 months ago by Irek.
-
AuthorPosts
-
May 20, 2021 at 14:29 #33543jxuParticipant
Thanks for this amazing piece of software.
I have two computers in my LAN behind the router. One is Mac and the other one is Ubuntu 18.04. I have installed NoMachine on both of them. I went through this post: https://knowledgebase.nomachine.com/AR10R01099. My Mac is able to successfully do automatic port forwarding in NoMachine and the server status shows a port number for me to connect to outside the local network. But I just cannot get the Ubuntu computer to do automatic port forwarding.
I checked my router configuration, everything looks correct and UPnP is enabled – I guess otherwise my Mac computer connection won’t work.
Here is the output for
sudo /etc/NX/nxserver --restart
NX> 162 Disabled service: nxserver.
NX> 162 Disabled service: nxnode.
NX> 162 Disabled service: nxd.
NX> 111 New connections to NoMachine server are enabled.
NX> 161 Enabled service: nxserver.
NX> 161 Enabled service: nxnode.
NX> 161 Enabled service: nxd.Here is the output for
sudo /etc/NX/nxserver --upnpmap
Local IP 192.168.0.7
Gateway IP 192.168.0.1
External IPCan you help with the automatic port forwarding? I really don’t want to manually set up port forwarding and I mean that is the reason I chose NoMachine.
May 21, 2021 at 08:53 #33560IrekParticipantHello jxu,
we would need some more information:
Can you describe the network infrastructure
– router model / version
– is there more than one router / network interfaces on which Linux machine is connected?
– are both machines connected to the same router, both over wifi/lan or mixed?To list all interfaces on Mac and Linux, you can execute in terminal following command and show here the ouput:
”
ifconfig -a
“May 21, 2021 at 09:52 #33561jxuParticipant– router model / version
CenturyLink, model number: C844G
– is there more than one router / network interfaces on which Linux machine is connected?
No, only this router – through wifi.
– are both machines connected to the same router, both over wifi/lan or mixed?
Both machines are connected to the same router. Both are connected through wifi.
Output on Linux of ifconfig -a
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:01:2e:95:49:90 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp6s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:01:2e:95:49:8f txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 188608 bytes 214587657 (214.5 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 188608 bytes 214587657 (214.5 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.7 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::7b02:8653:aede:4e26 prefixlen 64 scopeid 0x20 ether 50:e0:85:39:57:ec txqueuelen 1000 (Ethernet) RX packets 588940 bytes 476082030 (476.0 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 484831 bytes 115044403 (115.0 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ztbpamnldl: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2800 inet 10.147.19.222 netmask 255.255.255.0 broadcast 10.147.19.255 inet6 fe80::f833:3aff:fecc:4308 prefixlen 64 scopeid 0x20 ether fa:33:3a:cc:43:08 txqueuelen 1000 (Ethernet) RX packets 65 bytes 9438 (9.4 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3336 bytes 669926 (669.9 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Output on Mac of ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201<PERFORMNUD,DAD> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 3c:15:c2:de:bc:42 inet6 fe80::1c96:f0b1:7b8c:150%en0 prefixlen 64 secured scopeid 0x4 inet 192.168.0.6 netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 options=400 ether 0e:15:c2:de:bc:42 media: autoselect status: inactive awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484 options=400 ether 2a:65:be:88:c1:c7 inet6 fe80::2865:beff:fe88:c1c7%awdl0 prefixlen 64 scopeid 0x6 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 2a:65:be:88:c1:c7 inet6 fe80::2865:beff:fe88:c1c7%llw0 prefixlen 64 scopeid 0x7 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:0f:11:6a:b8:c0 media: autoselect status: inactive en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:0f:11:6a:b8:c1 media: autoselect status: inactive bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=63<RXCSUM,TXCSUM,TSO4,TSO6> ether 82:0f:11:6a:b8:c0 Configuration: id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200 root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0 ipfilter disabled flags 0x0 member: en1 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 8 priority 0 path cost 0 member: en2 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 9 priority 0 path cost 0 nd6 options=201<PERFORMNUD,DAD> media: status: inactive utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 inet6 fe80::e53a:c2e:72c:4037%utun0 prefixlen 64 scopeid 0xb nd6 options=201<PERFORMNUD,DAD> utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 inet6 fe80::f014:8ae2:7d86:f30f%utun1 prefixlen 64 scopeid 0xc nd6 options=201<PERFORMNUD,DAD> utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 inet6 fe80::f0b5:6f19:6716:ca63%utun2 prefixlen 64 scopeid 0xd nd6 options=201<PERFORMNUD,DAD> utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 inet6 fe80::8435:244:42ac:cfb3%utun3 prefixlen 64 scopeid 0xe nd6 options=201<PERFORMNUD,DAD>
May 21, 2021 at 10:23 #33568IrekParticipantHello jxu,
on Linux machine I see those 2 interfaces
”
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.7 netmask 255.255.255.0 broadcast 192.168.0.255ztbpamnldl: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2800
inet 10.147.19.222 netmask 255.255.255.0 broadcast 10.147.19.255
”could you please, for test purpose, disable/remove ‘ztbpamnldl’ interface,
so there will be only one ‘wlp2s0’ like on Mac os.May I ask what is this ‘ztbpamnldl’ interface?
Then restart nxserver, reproduce and please let us know if this helps:
”
sudo /etc/NX/nxserver –restart
sudo /etc/NX/nxserver –upnpmap
sudo /etc/NX/nxserver –upnpstatus
“May 21, 2021 at 12:44 #33571jxuParticipantHow do I remove that interface?
May I ask what is this ‘ztbpamnldl’ interface?
I am guessing it is because I am using zerotier for ssh. However, I do not believe this is the issue because in another apartment of mine I have a Linux machine working with NoMachine automatic port forwarding which also uses zerotier and has this interface for ifconfig -a.
But I can try to remove it if you let me know what is the command to do that.
May 21, 2021 at 13:45 #33572jxuParticipantIn case you dont know about ZeroTier, it will give you a WAN accessible psuedo IP address for my machines in the local network, so I don’t need to set up port forwarding for ssh.
May 21, 2021 at 14:19 #33581IrekParticipantHello jxu,
– as first stop/disable zerotier service.
– then to disconnect its interface please try this command:
”
nmcli device disconnect ztbpamnldl
”– check if this interface id disconnected, by:
”
nmcli device status
”when all goes ok, and there will be only one interface enabled/connected,
restart nxserver, reproduce and please let us know if this helps:”
sudo /etc/NX/nxserver –restart
sudo /etc/NX/nxserver –upnpmap
sudo /etc/NX/nxserver –upnpstatus
“May 21, 2021 at 22:28 #33600jxuParticipantIt does not help.
I have disabled the service and this is the output from ifconfig -a
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:01:2e:95:49:90 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0enp6s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:01:2e:95:49:8f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 343739 bytes 384913387 (384.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 343739 bytes 384913387 (384.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.7 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::7b02:8653:aede:4e26 prefixlen 64 scopeid 0x20<link>
ether 50:e0:85:39:57:ec txqueuelen 1000 (Ethernet)
RX packets 1208767 bytes 1101893313 (1.1 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 835761 bytes 175730682 (175.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0The output from nmcli device status is
wlp2s0 wifi connected 623
enp5s0 ethernet unavailable —
enp6s0 ethernet unavailable —
lo loopback unmanaged —The output from sudo /etc/NX/nxserver –upnpmap is
Local IP 192.168.0.7
Gateway IP 192.168.0.1
External IPMay 21, 2021 at 22:30 #33601jxuParticipantAs I said, I have another Linux machine using zerotier and it has the interface in ifconfig but works well with automatic port forwarding so I don’t think zerotier might be the issue.
May 26, 2021 at 08:30 #33639IrekParticipantHello jxu,
we would need to collect debug logs.
Restart router, wait till it finish and repeat all the steps on both machines, Linux and Mac:1 Enable debug and restart nxserver:
”
sudo /etc/NX/nxserver –debug –enable all
sudo /etc/NX/nxserver –restart
”2 Reproduce the problem
”
sudo /etc/NX/nxserver –upnpmap
sudo /etc/NX/nxserver –upnpstatus
”3 Collect logs and disable debug:
”
sudo /etc/NX/nxserver –debug –collect
sudo /etc/NX/nxserver –debug –disable all
sudo /etc/NX/nxserver –restart
”4 Please send to us also server.cfg files from both machines, Linux and Mac.
This article explains how to collect the logs: https://knowledgebase.nomachine.com/DT11R00181
Please attach logs to your reply here or you can send them to forum[at]nomachine[dot]com making sure to use the topic’s title in the subject. -
AuthorPosts
Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.