Home > Software engineering >  How to set my vncserver listen on my Public IP , I cant use vnc viewer to connect to my server
How to set my vncserver listen on my Public IP , I cant use vnc viewer to connect to my server

Time:10-19

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? enter image description here

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.

  • Related