SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-08-21 11:58:49

dave13
Member
Registered: 2015-08-19
Posts: 16

[SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

I'm trying to set up the Remote Transmission app on my android phone.
After filling up the required fields such as username, password, port...
An error message was shown saying that the connection was refused.
I've read somewhere that this can be fixed by the port I specified(9091)
Can somebody teach me how to open the port. I'm new to this.
Thanks in advance

Last edited by dave13 (2015-10-14 23:58:25)

Offline

Be excellent to each other!

#2 2015-08-21 12:08:29

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

Does this work:

sudo iptables -I INPUT -p tcp --dport 9091 --syn -j ACCEPT

I've deleted your other thread -- in future, please use the "Report" button and ask one of the mod team to move the thread to the correct location wink

Offline

#3 2015-08-21 13:58:46

dave13
Member
Registered: 2015-08-19
Posts: 16

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

On my laptop: nothing happens when I type the code like what I get when I type a correct code

On my phone: I still get the "failed to connect to /112.210.49.74 (port 9091) after 3000ms: isConnected failed: ECONNREFUSED (Connection refused)

Previous thread: Thanks for deleting my other thread. I'll take note of that next time. smile

Offline

#4 2015-08-21 14:54:17

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

After running the `iptables` command, what is the output of:

sudo iptables -nvL

I don't really know what this "Remote Transmission" app is, can you explain more please?

Offline

#5 2015-08-21 15:16:47

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

Check the settings.json of transmission-daemon (if this is what you are talking about), check the keys

    "rpc-authentication-required": false,
    "rpc-bind-address": "127.0.0.1", 
    "rpc-enabled": true, 
    "rpc-password": "{93951ea0f45c0aa2cf2a79957d10999e3a4fd6e9MNCvmS41", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "transmission", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": true

Bind to 0.0.0.0, make sure RPC is enabled, make sure the whitelist is disabled or your android device's IP address is whitelisted. If you enabled authentication, make sure the password is set correctly.

Offline

#6 2015-08-23 06:01:38

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

what sort of internet connection does your laptop (the machine hosting transmission) have?

how are you starting transmission on your laptop?
if you're using transmission GUI (gtk3 most probably), have you enabled the web interface? how exactly?

have you tried connecting to the transmission daemon directly through your phone's browser?

@HoaS: i suspect the android app offers exactly that as a seperate app.

Offline

#7 2015-08-23 11:22:15

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

It is worth noting here that the default Debian system leaves all the ports open by default.

Offline

#8 2015-08-25 01:55:30

dave13
Member
Registered: 2015-08-19
Posts: 16

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

sudo iptables -nvL

Offline

#9 2015-08-25 05:27:25

dave13
Member
Registered: 2015-08-19
Posts: 16

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

ip addr show

Offline

#10 2015-08-25 05:44:17

dave13
Member
Registered: 2015-08-19
Posts: 16

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

    "rpc-authentication-required": true,
    "rpc-bind-address": "127.0.0.1", 
    "rpc-enabled": true, 
    "rpc-password": "yourpassword", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "ohnonot", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": false

Offline

#11 2015-08-25 15:10:48

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: [SOLVED] ERR_CONNECTION_REFUSED on Transmission Remote

^ You need to change the settings as I did say in the accompanying comment to the snippet. rpc-bind-address must be "0.0.0.0" which means "all networks". "127.0.0.1" is only accessible from the local loopback device meaning NO external device, including your phone app, will be able to reach the address. I suggest something like:

"rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "bar", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "foo", 
    "rpc-whitelist-enabled": false

Which should allow you to reach the web client from your phone's browser by typing

http://$your_computers_ip_address:9091

into the URL field. Then enter username and password. On your phone, you'd have to configure the IP, port, username and password in the app you're using.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo