I use netstat to see what ports are listening.The vncserver is running.,but listen on localhost,I want to make it listen on public ip ,how to do that?
2
I used the wrong port 5901 to connect.It should use the port you used in setting the vnc server using
vnserver :1
The port number is 1 not 5901.
You can edit it in file /etc/systemd/system/[email protected] by removing from start line -localhost and restart the service.
/etc/systemd/system/[email protected]
-localhost
Click here to cancel reply.
2
Answers
I used the wrong port 5901 to connect.It should use the port you used in setting the vnc server using
The port number is 1 not 5901.
You can edit it in file
/etc/systemd/system/[email protected]
by removing from start line-localhost
and restart the service.