skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

    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.


  2. You can edit it in file /etc/systemd/system/[email protected] by removing from start line -localhost and restart the service.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search