Forum Replies Created
-
AuthorPosts
-
IrekParticipant
Hello Rosssiiii,
I asked to check if UPnP is enabled just to be sure, as you want to use UPnP feature it should be enabled all the time.
1. Enable the logs by following the instructions on the server side using the article https://www.nomachine.com/DT10O00163#1 (alternatively there is https://www.nomachine.com/DT10O00162 which is a less technical version).
2. As you can see here: https://www.nomachine.com/DT10O00163#1.4.
you will find the logs on Windows in
%PROGRAMDATA%/NoMachine/var/log on Windows Vista, 7, 8, 8.1 and 10. Documents and Settings/All Users/NoMachine/var/log on Windows XP.
For example:
C:\ProgramData\NoMachine\var\log
3. Reproduce the problem and show us the result of the following commands::
On Windows: start cmd.exe as root (Administrator) and
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpmap C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpstatus
On Unix:
sudo /etc/NX/nxserver --upnpmap sudo /etc/NX/nxserver --upnpstatus
4. Zip them up and send them to forum[at]nomachine[dot]com. Use the ‘@’ and ‘.’ in place of the brackets.
It’s important to reproduce the problem once you’ve enabled everything and then zip the logs.
IrekParticipantHello Rosssiiii,
we would need some more information
1. Router name and model.
2. Check the key
EnableUPnP
inserver.cfg
if it is set to NX, if not set it and restart nxserver.Then please run a terminal and execute the commands:
3. Please enable debug, restart nxserver, reproduce the problem and show us the result of the following commands::On Windows: start cmd.exe as root (Administrator) and
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpmap C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpstatus
On Unix:
sudo /etc/NX/nxserver --upnpmap sudo /etc/NX/nxserver --upnpstatus
Please do this on 2 servers where problem occurs and where doents connected to the same router. Instructions about debug and collecting logs you can find there: https://www.nomachine.com/AR07K00677
Please send them to forum[at]nomachine[dot]com making sure to reference the topic.
IrekParticipantHello r91085,
I realise now that my answer was incomplete. So, by adding into:
InstallationDirectory/etc/htd.cfg
and add following lines at the end of file, please make sure that this new line is :
PassEnv ALLUSERSPROFILE USERPROFILE
so end of htd.cfg file will looks like :
<Directory "C:\Program Files (x86)\NoMachine/"> AllowOverride None Options +FollowSymLinks +ExecCGI Require all granted </Directory> PassEnv ALLUSERSPROFILE USERPROFILE
and then restart nxhtd server:
InstallationDirectory/bin/nxserver --restart nxhtd
IrekParticipantHello r91085,
let’s clarify one thing. Installation comes with a self-signed an SSL Certificate File and SSL Certificate Key file intended to be just a sample. They are, respectively:
installation directory/etc/keys/host/ht_host_rsa_key.crt
installation directory/etc/keys/host/ht_host_rsa_key
Administrators have to replace the sample SSL Certificate File and Key File with their own certificate self-signed or acquired from a CA. you can read more about that with the following article: https://www.nomachine.com/DT03O00127#3
In any case, we’d like to take a look at the logs in just to make sure there’s nothing wrong in NoMachine
Please follow the instructions here: https://www.nomachine.com/DT10O00163#1
and uncomment and set these 2 keys in server.cfg like this:SessionLogLevel 7
WebSessionLogLevel 7
Send them to forum[at]nomachine[dot]com
IrekParticipantHello otlichnik73,
from the logs we can see that debug level wasn’t enabled – or at least it wasn’t enabled on the machine from which you sent logs.
On the affected machine which you are connecting -to- please follow the instructions as above, making sure
Change from:
#SessionLogLevel 6
To:
SessionLogLevel 7
and restarting the server.
Could you please give us the info for points 4, 5 and 6 as well? Thanks.
IrekParticipantHello r91085,
yes, it is possible to use HTTP, all you have to do is to disable redirection on NoMachine server side.
To do that, please edit:
InstallationDirectory/etc/htd.cfg
and remove or comment out following lines:
<VirtualHost _default_:*> RewriteEngine on ReWriteCond %{SERVER_PORT} !^4443$ RewriteRule ^/(.*) https://%{SERVER_ADDR}:4443/nxwebplayer [R,L] </VirtualHost>
and then restart nxhtd server:
InstallationDirectory/bin/nxserver --restart nxhtd
After that, you can access NoMachine Web Player by typing
http://<IP address>:4080
IrekParticipantHello otlichnik73,
Server logs weren’t enabled, so please do:
1. Open cmd as an administrator.
1.4. Server on Windows
Step 1 – Set debug level in server.cfg
Copy the InstallationDirectory/NoMachine/etc/server.cfg file in a temporary folder and open the file with an editor like WordPad. This is necessary for being able to edit the file.Edit the copy of the server.cfg file, uncomment and set the following:
Change from:
#SessionLogLevel 6
To:
SessionLogLevel 7
Copy the modified server.cfg file to InstallationDirectory/NoMachine/etc/server.cfg. Administrative privileges are required.
2. Restart nxserver, open cmd as an administrator, and execute:
"C:\Program Files (x86)\NoMachine\bin\nxserver.exe" --restart
3. Wait few minutes, and reproduce the problem, open cmd as an administrator, and execute:
"C:\Program Files (x86)\NoMachine\bin\nxserver.exe" --upnpmap
"C:\Program Files (x86)\NoMachine\bin\nxserver.exe" --upnpstatus
Please do this on 2 servers connected to the same router. One must
be the Windows server where port mapping is not working, and second any
of the servers where port mapping is working.Instructions about debug and collecting logs you can find there: https://www.nomachine.com/DT10O00163.
Please send them to forum[at]nomachine[dot]com making sure to reference the topic.
4. The Router name and model to which the problematic Windows machine
is connected.5. You mention you checked whether UPnP is enabled, you mean you checked it on the router which is attached to the problematic Windows machine?
6. Are there any other machines connected to that same router and which don’t have problems with port mapping?
IrekParticipantHello otlichnik73,
we would need some more information:
1. The Router name and model to which the problematic Windows machine
is connected.2. You mention you checked whether UPnP is enabled, you mean you checked it on the router which is attached to the problematic Windows machine?
3. Are there any other machines connected to that same router and which don’t have problems with port mapping?
4. Please enable debug, restart nxserver, reproduce the problem and cmd.exe as root (Administrator) and show us the result of the following commands:
”
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpmap
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpstatus
”Please do this on 2 servers connected to the same router. One must
be the Windows server where port mapping is not working, and second any
of the servers where port mapping is working.Instructions about debug and collecting logs you can find there: https://www.nomachine.com/DT10O00163.
Please send them to forum[at]nomachine[dot]com making sure to reference the topic.
- This reply was modified 6 years, 11 months ago by Irek.
IrekParticipantHello xprinceps,
in that case, when the router doesn’t support UPnP or NAT-PMP protocol, you will have to enable port forwarding by hand on your router.
From “NAT/Gaming” section, under “Manage Custom Service” press button “Custom Services”
1. Service Name – you can call it whatever you like
‘NoMachine’
2. Global Port Range – set whatever port you would like, this port will be used when connecting to NoMachine Server.
24000 – 24000
3. Base Host Port – by default 4000 (which is default port of NX )
4000
4. Protocol (drop-down menu with TCP and UDP as the only options)” – TCP
TCP
Then, when you add “Custom Services”, return to “NAT/Gaming”
And set1. Service – service name just created
‘NoMachine’
2. Needed by device – select IP of local machine where NoMachine server is installed
Hope, this link can be usefull
IrekParticipantHello xprinceps,
according to https://www.nomachine.com/AR11L00827:
“When the NoMachine (server) computer is behind a NAT router or a firewall, NoMachine tries to use the UPnP or NAT-PMP protocol (depending on what is supported by the router) to:
– Retrieve the public or external IP of the host machine where it’s installed.
– Configure the router to allow a NoMachine client to connect from outside of the private network.”
First I would suggest to check if:– your router has enabled UPnP or NAT-PMP protocol, if not try to enable it and then restart the router.
– Please check that UPnP is enabled on nxserver.
Check the key ‘EnableUPnP’ in server.cfg if it is set to NX, if not set it and restart nxserver.
Then please run a terminal and execute the commands:sudo /etc/NX/nxserver --upnpmap sudo /etc/NX/nxserver --upnpstatus
If the router doesn’t support UPnP or NAT-PMP protocol or you still don’t see the ports you will have to configure port forwarding by using the router admin interface. This is normally a Web application running at http://192.168.1.1. Follow these instructions for your router:
1. Reserve local IP of your computer on router according to your router’s instructions.
2. Open a unique port for that local IP in Port Forwarding section on the router.
3. Check public IP of the router.
4. Now in your Player connection settings – enter the public IP of your router and unique port. Now you should connect to your machine.Please see ‘IMPORTANT’ section from https://www.nomachine.com/AR11L00827 .
Could you also provide to us router name and model, you can usually find it on a sticker on the bottom or back of the router?
- This reply was modified 7 years ago by Irek.
IrekParticipantHello otlichnik,
we would need some more information
1. Version of NoMachine Free
2. Router name and model.
3. Please enable debug, restart nxserver, reproduce the problem and cmd.exe as root (Administrator) and show us the result of the following commands:
”
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpmap
C:\Program Files (x86)\NoMachine\bin\nxserver.exe –upnpstatus
”Instructions about debug and collecting logs you can find there: https://www.nomachine.com/DT10O00163.
Please send them to forum[at]nomachine[dot]com making sure to reference the topic.
IrekParticipantHello devon,
We will need debug NoMachine Cloud server logs to investigate further. Please follow the instructions here:
https://www.nomachine.com/DT07M00098#1
especially point
1.1
”
Edit the /usr/NX/etc/server.cfg file. Uncomment and set the following:SessionLogLevel 7
”and 1.3:
”
1.3. If you have a Cloud Server installed and the problem affects sessions by the web:
Edit the /usr/NX/etc/cloud.cfg file. Uncomment and set the following:SessionLogLevel 7
”Send them to forum[at]nomachine[dot]com
IrekParticipantHello ag,
We will need debug NoMachine server logs to investigate further. Please follow the instructions here: https://www.nomachine.com/DT07M00098#1
Send them to forum[at]nomachine[dot]com
And then please set the ‘NXUPnPPort’ configuration key in the ‘server.cfg’ file,
this should stop Nomachine Server from choose external port randomly.
IrekParticipantHello stratzvyda,
We will need debug NoMachine server logs and nxplayer to investigate further. Please follow the instructions here:
https://www.nomachine.com/DT07M00098#1
And then please do those steps:
– Please restart nxserver, and repeat all steps to reproduce issue, like to get
port mapping and try to connect to server.
– Check port mapping by hand, executing this command in console:
”
# /etc/NX/nxserver –upnpstatus
”
Send them to forum[at]nomachine[dot]com
” The same external IP/port address combination is listed eight times on the host computer”
Could you please tell us, where you can see it, and if this is in nxplayer please do a screenshot and send to us.
IrekParticipantHello JL,
when using Web Player and redirection administrator have to add certificate as written in the article:
https://www.nomachine.com/AR05O00928
-
AuthorPosts