Android-Remote icon indicating copy to clipboard operation
Android-Remote copied to clipboard

Could Not Reach Host

Open amuttsch opened this issue 11 years ago • 49 comments

From [email protected] on March 02, 2013 21:29:24

What steps will reproduce the problem? 1. Entering my IP and attempting to connect What is the expected output? What do you see instead? Expected: the remote to connect. Instead: a message that it cannot reach host. What version of the product are you using? On what operating system? Latest Clementine build, 32-bit, Fedora 18. App downloaded from Google Play. Please provide any additional information below. I've gone and updated my version of Clementine from the stable to latest (lots of nice new features), got the app installed on my phone, the remote is enabled and the port is 5500 on both my computer as well as in the app's settings...but when I enter my IP address ( http://www.whatismyip.com/ ), the app tells me it cannot connect to the host. My computer is on and playing music at this very moment, but the app won't connect to it. Not sure what I'm doing wrong.

Original issue: http://code.google.com/p/clementine-remote-android/issues/detail?id=2

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on March 03, 2013 01:38:55

You are trying to connect via your internet ip to Clementine. This is not possible unless you forward the port 5500 to your computer.

But i think you don't want to control Clementine via internet. Open the terminal and enter "ifconfig". Depending on your connection you see eth0 or wlan0 and below something like this: inet Adresse:192.168.178.42

Use this ip in the app to connect to Clementine.

Please report back if it is working, thanks.

Status: Started
Labels: -Type-Defect -Priority-Medium Type-Other Priority-Low

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on March 09, 2013 11:17:34

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet xxx.xxx.x.x netmask 255.255.255.0 broadcast xxx.xxx.x.xxx

^ I entered this address into the app and still receive the same 'could not reach host' message. The version after 'broadcast' was slightly different (two additional numbers) than the one after 'inet', but neither appear to work. I still can't get the remote to connect. My computer is on and Clementine is running.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on March 10, 2013 11:42:49

Try disabling the "Use only private ip addresses only" option. Otherwise post the ip addresses of your computer and your android device here.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on March 10, 2013 14:10:42

That option was never checked off to begin with. My computer's IP is 192.168.1.2 (or 192.168.1.255; the full line from ifconfig is inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255) and, if I found my phone's IP correctly, it's 192.168.1.6

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on March 11, 2013 04:31:54

Okay, with the ip "192.168.1.2" you should be able to connect to Clementine.

Do you have some sort of firewall active? Try ping you android device.

You can also check if clementine is listening for connections with the following command: netstat -a | grep 5500

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 20, 2013 01:35:13

same here on windows 8 I'm able to ping the pc form the phone and the phone forme the pc but it's not working

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 20, 2013 07:49:52

What version do you have installed on your pc?

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 25, 2013 13:25:19

Version 1.1.1-467-g67fe9f0

Here is what I get from netstat: http://screencast.com/t/iIbpkMsk6N3 and clementine: http://screencast.com/t/6ILHZWGI

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 25, 2013 22:55:47

What ip did you enter in Clementine Remote? I'd guess you have to enter 192.168.0.140

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 26, 2013 02:38:39

Yes this one.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on April 27, 2013 05:26:56

Do you have some sort of firewall running? Maybe Clementine is blocked there.

When activiating the remote the first time, a windows firewall popup should have appered where you have to grand Clementine permission to run as a server. Did you give it permission?

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on May 08, 2013 12:29:32

Same problem here too. Solved by disabling Ubuntu Firewall.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 29, 2013 08:53:50

I have my Ubuntu Firewall on and it still works without a problem. You just have to make sure you open the Clementine port on the firewall and that's it. You don't have to disable it.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 29, 2013 13:38:55

Both windows 7 and fedora 18: It does not work if I have a proxy selected.
It does work if I have direct internet connection selected. The proxy running is on windows 7 and is Squid 2.7.STABLE8.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 30, 2013 13:26:19

Is your computer or android device behind the firewall? If both, are they in the same network?

Have you set the proxy in the android wifi settings?

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 30, 2013 14:51:44

Clementine Remote 6.2 Clementine Windows Version 1.1.1-590-g00a0e99 Netgear 3800 router running OpenWrt Barrier Breaker r35899 .

Windows 7 Ultimate 64 bit with windows firewall and port 5500 open. Samsung Galaxy ACE GT-55830L Android Version 2.3.6 - No proxy set.

All on same network with internal 192.168.1.XXX ip numbers.

My guess was setting the proxy in clementine was somehow routing port 5500 though the proxy as well. I'm thinking I should check and see if there is a setting in squid to forward this port. I would not think that clementine should send it's remote port to the proxy, but I could be wrong.

I will see about the config change to squid and report back.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 30, 2013 15:05:32

I just checked on the squid config for internal access. I am using defaults.

acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT

Not being able to set a proxy in clementine doesn't matter to me. I hope it is just a piece of the puzzle and may help troubleshooting the can not connect to host error.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 31, 2013 07:53:51

Can you ping the android device from your windows machine? Check if Clementine is listening on port 5050 with "netstat -an" in the command line.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 31, 2013 08:11:13

Ping android from windows - successful.

netstat -an with proxy selected in clementine - unsuccessful - port 5500 not listed.

netstat -an with direct connection clementine - successful - port 5500 is listed. TCP 0.0.0.0:5500 0.0.0.0:0 LISTENING

Port 5500 is what I have set in clementine's network remote options. I've found you have to exit clementine and restart it for changes to options in network proxy to take affect.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 31, 2013 08:16:49

My opinion is that it is a quirk or issue with clementine and not with clementine remote.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 31, 2013 08:29:47

Got it, thanks for your input.

Wait a few minutes for the buildbot to compile the new version, then it should work with a proxy selected.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on July 31, 2013 13:43:41

Clementine Version 1.1.1-593-g4fe293b with Clementine Remote 7 RC3. netstat -an with proxy is now ok! Remote now works with proxy selected. You did good! I am sorry it took me so long to get back to trying it out.

One minor unrelated note: A playlist of ~30K to ~60K entries crashes Clementine Remote. Sometimes without any errors and sometimes with de.qspool.clementineremote has stopped unexpectedly. Would you like me to open a new issue?

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on August 01, 2013 01:45:55

Yes, please open a new issue for that. Please post how to reproduce the problem.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on September 25, 2013 08:18:22

I have troubles with "could not reach host", too. Using Fedora 19, Android 4.1 (Nexus S). I installed the newest build, enabled network remote, than I ran mobile app. It found my computer with running Clementine, but it's unable to reach host. IP addresses and ports are OK, ping works fine, netstat -an | grep "5500" says: tcp 0 0 0.0.0.0:5500 0.0.0.0:* LISTEN

I'm helpless :(

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on October 30, 2013 13:49:12

[email protected]

i have the same trouble: no connection from android 4.0.3 to clementine 1.2 64 bits on Linux Mint 14. netstat is ok, IP adress is ok

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on October 30, 2013 14:55:32

Please provide more information. What are the ip adresses, can you ping your android device, are you running any kind of firewall on either Mint or Android?

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on November 08, 2013 16:24:47

Same 'could not connect' problem with Clementine running on Acer Aspire under Linux Mint 14 using Remote App on phone with Android 2.3.6.

Checked port 5500 as suggested by developer emailand it is not used by other programs. Checked Netgear Genie for all attached network devices and IP addresses - AOK. No firewall running on Linux. Also checked notebook using netstat -nlt with clementine off and no port 5500 listed; tried again with Clementine running and port 5500 is listed as LISTEN.

It seems that Clentine Remote App on my phone knows about the Linux Clementine as when I touch the App screen a 3 line message appears in a box saying" Clementines; Clementine on Tony-Aspire-556; 192.168.1.4:5500".

Oh well back to my vegetable garden.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on November 11, 2013 07:52:54

Try connecting to Clementine via telnet on your Mint machine.

Terminal: "telnet 192.168.1.4 5500"

Does it connect? Hit enter when the connection is established and play / pause Clementine. If some strange characters appear (and the connection is closed when using auth. code) the connection itself works.

Try from a differnt machine when it works. Maybe we can pin down the issue.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on November 12, 2013 02:33:32

Thanks for the suggestion. I entered the IP as directed using telnet; connection was successful and data appeared to flow in the 'terminal' window, some inteligible like track title and artist but much looking like dominoes! This data started/stopped in conjunction with pressing play/pause in Clementine.

Just to maybe help further - this is a dual boot Windows/Linux laptop; so I also downloaded & tried Clementine for Windows with the remote app. It worked perfectly!

Also noted that under Windows full network sharing for folders/files on both machines (main PC & laptop) worked under Windows but nothing is visible under Linux from main PC. Cannot understand or figure that out - 40 years ago when I was a mainframe software programmer it may have made sense, but not now!

Thanks again.

amuttsch avatar Dec 06 '13 11:12 amuttsch

From [email protected] on November 14, 2013 07:15:28

Okay, then your network seems ok. Do you have iptables active in Linux Mint?

Check with "sudo /etc/init.d/iptables status"

amuttsch avatar Dec 06 '13 11:12 amuttsch