Cannot Connect to the WebUI Remotely

General support for problems installing or using Deluge
Post Reply
mtcarddealer

Cannot Connect to the WebUI Remotely

Post by mtcarddealer »

I am having trouble connecting to the WebUI from a remote computer. I have Deluge and the WebUI installed on a headless CentOS 7 VM. I am sure the WebUI daemon is running as I can retrieve the index.html page from the shell using wget:

Code: Select all

[root@localhost ~]# wget localhost:8112
--2015-02-23 23:01:45--  http://localhost:8112/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8112... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8112... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1948 (1.9K) [text/html]
Saving to: ‘index.html’

100%[========================================>] 1,948       --.-K/s   in 0s

2015-02-23 23:01:45 (202 MB/s) - ‘index.html’ saved [1948/1948]

[root@localhost ~]# cat index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>Deluge: Web UI 1.3.11</title>

                <link rel="shortcut icon" href="/icons/deluge.png" type="image/png" />
                <link rel="icon" href="/icons/deluge.png" type="image/png" />
                <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 163dpi)" href="/icons/apple-pre-57.png" />
                <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 132dpi)" href="/icons/apple-pre-72.png" />
                <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 326dpi)" href="/icons/apple-pre-114.png" />

                <!-- Stylesheets -->
                <link rel="stylesheet" type="text/css" href="/css/ext-all-notheme.css" />
                <link rel="stylesheet" type="text/css" href="/themes/css/xtheme-gray.css" />
                <link rel="stylesheet" type="text/css" href="/css/ext-extensions.css" />
                <link rel="stylesheet" type="text/css" href="/css/deluge.css" />

                <script type="text/javascript">
                deluge = {
                        author: 'Damien Churchill <damoxc@gmail.com>',
                        version: '1.3.11',
                        config: {"sidebar_show_zero": false, "show_session_speed": false, "first_login": true, "theme": "gray", "base": "/", "sidebar_multiple_filters": true}
                }
                </script>

                <!-- Javascript -->
                <script type="text/javascript" src="/gettext.js"></script>
                <script type="text/javascript" src="/js/ext-base.js"></script>
                <script type="text/javascript" src="/js/ext-all.js"></script>
                <script type="text/javascript" src="/js/ext-extensions.js"></script>
                <script type="text/javascript" src="/js/deluge-all.js"></script>
                <script type="text/javascript">
                        Deluge.debug = false;
                </script>
        </head>
        <body>
                <div style="background-image: url('/themes/images/default/tree/loading.gif');"></div>

                <!-- Preload icon classes -->
                <div class="ext-mb-error"></div>
                <div class="icon-ok"></div>
        </body>
</html>
[root@localhost ~]#
I have the allow-remote setting set to true. My /var/lib/deluge/.config/deluge/core.conf file:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "info_sent": 0.0,
  "lsd": true,
  "send_info": false,
  "move_completed_path": "/var/lib/deluge/Downloads",
  "enc_in_policy": 1,
  "queue_new_to_top": false,
  "ignore_limits_on_local_network": true,
  "rate_limit_ip_overhead": true,
  "daemon_port": 58846,
  "natpmp": true,
  "max_active_limit": 8,
  "utpex": true,
  "max_active_downloading": 3,
  "max_active_seeding": 5,
  "allow_remote": true,
  "max_half_open_connections": 50,
  "download_location": "/var/lib/deluge/Downloads",
  "compact_allocation": false,
  "max_upload_speed": -1.0,
  "cache_expiry": 60,
  "prioritize_first_last_pieces": false,
  "auto_managed": true,
  "enc_level": 2,
  "max_connections_per_second": 20,
  "dont_count_slow_torrents": false,
  "random_outgoing_ports": true,
  "max_upload_slots_per_torrent": -1,
  "new_release_check": true,
  "enc_out_policy": 1,
  "outgoing_ports": [
    0,
    0
  ],
  "seed_time_limit": 180,
  "cache_size": 512,
  "share_ratio_limit": 2.0,
  "max_download_speed": -1.0,
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
  "torrentfiles_location": "/var/lib/deluge/Downloads",
  "stop_seed_at_ratio": false,
  "peer_tos": "0x00",
  "listen_interface": "",
  "upnp": true,
  "max_download_speed_per_torrent": -1,
  "max_upload_slots_global": 4,
  "enabled_plugins": [],
  "random_port": true,
  "autoadd_enable": false,
  "max_connections_global": 200,
  "enc_prefer_rc4": true,
  "listen_ports": [
    6881,
    6891
  ],
  "dht": true,
  "stop_seed_ratio": 2.0,
  "seed_time_ratio_limit": 7.0,
  "max_upload_speed_per_torrent": -1,
  "copy_torrent_file": false,
  "del_copy_torrent_file": false,
  "move_completed": false,
  "proxies": {
    "peer": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "web_seed": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "tracker": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "dht": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    }
  },
  "add_paused": false,
  "max_connections_per_torrent": -1,
  "remove_seed_at_ratio": false,
  "autoadd_location": "/var/lib/deluge/Downloads",
  "plugins_location": "/var/lib/deluge/.config/deluge/plugins"
}
Here is my web.conf file as well:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "port": 8112,
  "enabled_plugins": [],
  "pwd_sha1": "2ce1a410bcdcc53064129b6d950f2e9fee4edc1e",
  "theme": "gray",
  "show_sidebar": true,
  "sidebar_show_zero": false,
  "pkey": "ssl/daemon.pkey",
  "https": false,
  "sessions": {},
  "base": "/",
  "pwd_salt": "c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad",
  "show_session_speed": false,
  "first_login": true,
  "cert": "ssl/daemon.cert",
  "session_timeout": 3600,
  "default_daemon": "",
  "sidebar_multiple_filters": true
}
I also ran some port stats in case there is something else I may be missing:

Code: Select all

[root@localhost ~]# netstat -anp | grep deluge
tcp        0      0 0.0.0.0:8112            0.0.0.0:*               LISTEN      2493/deluge-web
unix  3      [ ]         STREAM     CONNECTED     19079    2493/deluge-web
[root@localhost ~]# lsof -i | grep deluge
deluged   1165 deluge    9u  IPv4  18164      0t0  TCP *:58846 (LISTEN)
deluged   1165 deluge   10u  IPv4  18178      0t0  TCP *:63584 (LISTEN)
deluged   1165 deluge   11u  IPv4  18179      0t0  TCP *:vop (LISTEN)
deluged   1165 deluge   12u  IPv6  18180      0t0  TCP *:63584 (LISTEN)
deluged   1165 deluge   13u  IPv6  18181      0t0  TCP *:4434 (LISTEN)
deluged   1165 deluge   14u  IPv4  18184      0t0  UDP *:63584
deluged   1165 deluge   15u  IPv6  18185      0t0  UDP *:63584
deluged   1165 deluge   22u  IPv4  18312      0t0  UDP *:36548
deluged   1165 deluge   23u  IPv4  18316      0t0  UDP *:plysrv-https
deluged   1165 deluge   24u  IPv4  18317      0t0  UDP localhost:plysrv-https
deluged   1165 deluge   25u  IPv4  18318      0t0  UDP localhost:57924
deluge-we 2493 deluge    4u  IPv4  19086      0t0  TCP *:8112 (LISTEN)
Using Chrome via Win7 I get Error code: ERR_CONNECTION_TIMED_OUT
Using Chrome via iOS I get Error code: ERR_CONNECTION_REFUSED
Using Chrome via MacOSx I get Error code: ERR_CONNECTION_REFUSED

I have combed through google and the forums and have come up unsuccessful. Thanks in advance.
sylmarien

Re: Cannot Connect to the WebUI Remotely

Post by sylmarien »

Hi, simply passing by to say that I'm encountering the same problem on an installation on Ubuntu 14.04 server.

The only difference for me is that I don't have anything in the netstat -anp outptut that refers to deluge.
Post Reply