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?
CodePudding user response:
You can edit it in file /etc/systemd/system/[email protected]
by removing from start line -localhost
and restart the service.
CodePudding user response:
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.