Page 1 of 1

Incoming Port Settings

Posted: Tue Sep 18, 2018 4:31 pm
by adgedomin
I am running Deluge 1.3.15 on a headless Ubuntu 18.04 server. I use the Web UI to control it. No matter what I do I can not get Deluge to use a different port. It always binds to 6881. The site I want to connect to bans all the default ports. I run deluge as a service. I have tried switching the ports via the web ui and via stopping the service and editing core.conf. No matter what I do it ignores whats in core.conf and uses 6881. This all started when I upgraded from Ubuntu 16 to 18.

Re: Incoming Port Settings

Posted: Tue Sep 18, 2018 5:55 pm
by adgedomin
When I make changes in the Web UI the core.conf file is updated so I know I'm updating the proper file. The following settings change both ways if I edit the conf file it shows up in the Web UI, but the output of "sudo lsof -i -n -P | more" doesn't change. And the error port 6881 is banned remains. See below:

/var/lib/deluge/.config/deluge/core.conf
"random_port": false,
"listen_ports": [
56881,
56889
],

deluged 1465 deluge 12u IPv6 25929 0t0 TCP *:6881 (LISTEN)
deluged 1465 deluge 13u IPv6 25933 0t0 UDP *:6881
deluged 1465 deluge 14u IPv4 25930 0t0 TCP *:6881 (LISTEN)
deluged 1465 deluge 15u IPv4 25931 0t0 UDP *:6881
deluged 1465 deluge 16u IPv4 27923 0t0 TCP *:58846 (LISTEN)
deluged 1465 deluge 44u IPv4 37194 0t0 TCP 192.168.254.10:57577->2.87.227.145:56101 (ESTABLISHED)
deluged 1465 deluge 58u IPv4 26898 0t0 TCP 127.0.0.1:58846->127.0.0.1:38542 (ESTABLISHED)

Re: Incoming Port Settings

Posted: Tue Sep 18, 2018 10:23 pm
by Shryp
If you are changing via the preferences pages restart deluge. If you are changing via the config file make sure deluge is shut down before editing it.

Re: Incoming Port Settings

Posted: Wed Sep 19, 2018 1:25 pm
by adgedomin
I have tried to reboot the entire server after I update via preferences in the web UI and I have tried
sudo service deluged stop
sudo vim /var/lib/deluge/.config/deluge/core.conf
insert, MAKE CHANGES
esc, :wq
sudo service deluged start

Then I check the web UI and my changes show up in the preferences screen but all my torrents still show the error and the output of sudo lsof -i -n -P | more doesnt change

deluged 1465 deluge 12u IPv6 25929 0t0 TCP *:6881 (LISTEN)
deluged 1465 deluge 13u IPv6 25933 0t0 UDP *:6881
deluged 1465 deluge 14u IPv4 25930 0t0 TCP *:6881 (LISTEN)
deluged 1465 deluge 15u IPv4 25931 0t0 UDP *:6881

Re: Incoming Port Settings

Posted: Wed Sep 19, 2018 1:46 pm
by adgedomin
sudo netstat -tanp|grep 6881
tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN 7579/python

Re: Incoming Port Settings

Posted: Wed Sep 19, 2018 2:18 pm
by adgedomin
"new_release_check": true,
"enc_out_policy": 0,
"outgoing_ports": [
0,
0
],
"seed_time_limit": 0,
"cache_size": 512,
"share_ratio_limit": 0.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": "enp1s0",
"upnp": true,
"max_download_speed_per_torrent": -1,
"max_upload_slots_global": -1,
"enabled_plugins": [
"Scheduler",
"AutoAdd"
],
"random_port": false,
"autoadd_enable": false,
"max_connections_global": -1,
"enc_prefer_rc4": true,
"listen_ports": [
50000,
50010
],
"dht": true,
"stop_seed_ratio": 2.0,
"seed_time_ratio_limit": 0.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": "/mnt/md2/torrents",
"plugins_location": "/var/lib/deluge/.config/deluge/plugins"
}