Failed to connect to localhost:5901: [Errno 111] Connection refused.

1,033 views
Skip to first unread message

Hongyi Zhao

unread,
Feb 17, 2021, 11:09:16 PM2/17/21
to noVNC
On Ubuntu 20.04, I try to use the novnc git master version with the following steps according to the guidance on <https://github.com/novnc/noVNC#quick-start>:

$ git clone https://github.com/novnc/noVNC.git novnc/noVNC.git
$ cd novnc/noVNC.git
$ ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /home/werner/Public/repo/github.com/novnc/noVNC.git/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
WebSocket server settings:
  - Listen on :6080
  - Web server. Web root: /home/werner/Public/repo/github.com/novnc/noVNC.git
  - No SSL/TLS support (no cert file)
  - proxying from :6080 to localhost:5901


Navigate to this URL:

    http://X10DAi:6080/vnc.html?host=X10DAi&port=6080

Press Ctrl-C to exit


Then in firefox browser, I try to open the following URL given by noVNC:


But I failed to connect the server with the following error:

127.0.0.1 - - [18/Feb/2021 11:59:42] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [18/Feb/2021 11:59:42] 127.0.0.1: Path: '/websockify'
127.0.0.1 - - [18/Feb/2021 11:59:42] connecting to: localhost:5901
127.0.0.1 - - [18/Feb/2021 11:59:42] Failed to connect to localhost:5901: [Errno 111] Connection refused


Any hints for this problem will be highly appreciated.

Regards,
HY
Reply all
Reply to author
Forward
0 new messages