Forum / NoMachine for Linux / How to change the listening port of nxagent?
Tagged: nxagent listen port 7001
- This topic has 5 replies, 5 voices, and was last updated 10 years, 6 months ago by tired.
-
AuthorPosts
-
February 24, 2014 at 09:50 #2486sharajavaParticipant
In my environment, the port 7016 is used by nxagent.
bash-3.2$ netstat -atnp | grep 7016
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:7016 0.0.0.0:* LISTEN 31602/nxagent
tcp 0 0 :::7016 :::* LISTEN 31602/nxagent
I want to change it. How to do it? Thanks.
February 25, 2014 at 17:02 #2547BritgirlKeymasterLook at this post here: https://www.nomachine.com/forums/forums/topic/nxagent-is-listening-on-port-70017002#post-319
March 4, 2014 at 10:59 #2621snejokParticipantHello, all!
Why nxnode opens these ports?
# netstat -anlpt |grep LISTEN |grep nxnode | sort
tcp 0 0 0.0.0.0:7001 0.0.0.0:* LISTEN 20758/nxnode.bin
tcp 0 0 0.0.0.0:7002 0.0.0.0:* LISTEN 26853/nxnode.bin
tcp 0 0 0.0.0.0:7003 0.0.0.0:* LISTEN 16466/nxnode.bin
tcp 0 0 0.0.0.0:7004 0.0.0.0:* LISTEN 21998/nxnode.bin
# nmap <IP>
Host is up (0.0033s latency).
Not shown: 988 closed ports
PORT STATE SERVICE
22/tcp open ssh
113/tcp filtered auth
631/tcp open ipp
4000/tcp open remoteanything
7001/tcp open afs3-callback
7002/tcp open afs3-prserver
7004/tcp open afs3-kaserver
7007/tcp open afs3-bos
7019/tcp open unknown
7025/tcp open unknown
7070/tcp open realserver
7100/tcp open font-service
# telnet <IP> 7002
Trying <IP>…
Connected to <IP>.
Escape character is ‘^]’.
^]
telnet> quit
Connection closed.
April 4, 2014 at 15:04 #2940graywolfParticipanttcp 0 0 0.0.0.0:7001 0.0.0.0:* LISTEN 20758/nxnode.bin
tcp 0 0 0.0.0.0:7002 0.0.0.0:* LISTEN 26853/nxnode.bin
tcp 0 0 0.0.0.0:7003 0.0.0.0:* LISTEN 16466/nxnode.bin
tcp 0 0 0.0.0.0:7004 0.0.0.0:* LISTEN 21998/nxnode.bin
Those ports are the TCP X11 display ports. You have four node processes. Each node is listening on a different X11 display.
In X11, the port number and the display have a fixed offset of 6000, that is TCP Port = Display Number + 6000.
So that, those nodes are listening on X11 displays :1001, :1002, :1003, :1004. NoMachine is set to begin display count at 1001. New node processes will get progressive numbers.
May 22, 2014 at 08:54 #3699tiredParticipantIs there any way to reconfigure this behavior, perhaps the base port? I have a port conflict with another service that I have to run on 7001, which is kind of a deal breaker.
May 22, 2014 at 09:00 #3700tiredParticipantSolved. edit /usr/NX/etc/server.cfg
Uncomment DisplayBase, and set to something other than 1001.
(e.g. DisplayBase = 1004)
now nxnode display ports are 7004, etc., avoiding 7001
-
AuthorPosts
This topic was marked as solved, you can't post.