Open GoogleCodeExporter opened 9 years ago
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.
Original comment by asfa...@googlemail.com
on 3 Mar 2013 at 9:38
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.
Original comment by sg2chibi...@gmail.com
on 9 Mar 2013 at 7:17
Try disabling the "Use only private ip addresses only" option. Otherwise post
the ip addresses of your computer and your android device here.
Original comment by asfa...@googlemail.com
on 10 Mar 2013 at 6: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
Original comment by sg2chibi...@gmail.com
on 10 Mar 2013 at 9:10
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
Original comment by asfa...@googlemail.com
on 11 Mar 2013 at 11:31
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
Original comment by georgiev...@gmail.com
on 20 Apr 2013 at 8:35
What version do you have installed on your pc?
Original comment by asfa...@googlemail.com
on 20 Apr 2013 at 2:49
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
Original comment by georgiev...@gmail.com
on 25 Apr 2013 at 8:25
What ip did you enter in Clementine Remote? I'd guess you have to enter
192.168.0.140
Original comment by asfa...@googlemail.com
on 26 Apr 2013 at 5:55
Yes this one.
Original comment by georgiev...@gmail.com
on 26 Apr 2013 at 9:38
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?
Original comment by asfa...@googlemail.com
on 27 Apr 2013 at 12:26
Same problem here too.
Solved by disabling Ubuntu Firewall.
Original comment by surajfa...@gmail.com
on 8 May 2013 at 7:29
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.
Original comment by fcastill...@gmail.com
on 29 Jul 2013 at 3:53
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.
Original comment by royosw...@gmail.com
on 29 Jul 2013 at 8:38
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?
Original comment by asfa...@googlemail.com
on 30 Jul 2013 at 8:26
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.
Original comment by royosw...@gmail.com
on 30 Jul 2013 at 9:51
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.
Original comment by royosw...@gmail.com
on 30 Jul 2013 at 10:05
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.
Original comment by asfa...@googlemail.com
on 31 Jul 2013 at 2:53
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.
Original comment by royosw...@gmail.com
on 31 Jul 2013 at 3:11
My opinion is that it is a quirk or issue with clementine and not with
clementine remote.
Original comment by royosw...@gmail.com
on 31 Jul 2013 at 3:16
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.
Original comment by asfa...@googlemail.com
on 31 Jul 2013 at 3:29
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?
Original comment by royosw...@gmail.com
on 31 Jul 2013 at 8:43
Yes, please open a new issue for that. Please post how to reproduce the problem.
Original comment by asfa...@googlemail.com
on 1 Aug 2013 at 8:45
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 :(
Original comment by k4t...@gmail.com
on 25 Sep 2013 at 3:18
cdambrin@gmail.com
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
Original comment by cdamb...@gmail.com
on 30 Oct 2013 at 8:49
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?
Original comment by asfa...@googlemail.com
on 30 Oct 2013 at 9:55
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.
Original comment by nowpoe...@gmail.com
on 9 Nov 2013 at 12:24
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.
Original comment by asfa...@googlemail.com
on 11 Nov 2013 at 3:52
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.
Original comment by nowpoe...@gmail.com
on 12 Nov 2013 at 10:33
Okay, then your network seems ok. Do you have iptables active in Linux Mint?
Check with "sudo /etc/init.d/iptables status"
Original comment by asfa...@googlemail.com
on 14 Nov 2013 at 3:15
woops, wrong command. This one is the correct one: "sudo iptables --list"
Original comment by asfa...@googlemail.com
on 14 Nov 2013 at 3:16
Wow that produced a lot of output which is probably not suited for this
environment! I will forward it to you under separate cover.
Thanks again for your interest in my problem.
Original comment by nowpoe...@gmail.com
on 15 Nov 2013 at 3:53
Okay, it looks like you have set some iptables rules that blocks (all) incoming
traffic. You have to allow Clementine in there. Clementine uses port 5500 (tcp).
By default, Linux Mint (and Ubuntu) doesn't have any active rules for iptables.
I don't use iptables and cannot tell you exactly what you have to do to enable
Clementine there, but there are plenty tutorials on the net.
Hope it works :-)
Original comment by asfa...@googlemail.com
on 15 Nov 2013 at 2:09
Well thank you for the analysis - I have no idea where these iptable rules come
from especially as I have not turned on the Linux firewall ... well I do not
think I have.
OK its up to me now; never too old to learn something new so I will start
looking up the target subjects on the net!
Once again I really appreciate the support you have provided and I will respond
when I (hopefully) have found a solution! Thanks.
Original comment by nowpoe...@gmail.com
on 16 Nov 2013 at 4:18
Well that was quick - a search, some reading and a concusion that Mint has by
default a blanket deny to incoming traffic; more reading and a command that
will invoke access permission to Linux for my home subnet.
So YES now my Clementine Remote Android device is driving the Clementine
playlist on my Linux PC.
Thanks again for your help; much appreciated by this old guy.
Original comment by nowpoe...@gmail.com
on 16 Nov 2013 at 5:53
You're welcome, I'm glad I could help.
Maybe you could post the commands you used to set up the iptables properly, so
other users who might encounter the same problem can use them?
Thanks! :)
Original comment by asfa...@googlemail.com
on 16 Nov 2013 at 10:26
OK happy to contribute and make some info available to other Linux 'neophytes'
who may not understand iptables and encounter similar 'cannot reach host'
problems with Clementine Remote.
Linux UFW (uncomplicated firewall) appears to have a blanket default rule set
that basically apppears to "deny all incoming" connection attempts. Rules
though can be applied that customise who can/cannot gain access e.g. Clementine
Remote on Android.
I used the following terminal command to solve my access problem : 'sudo ufw
allow from 192.168.1.0/24' which allows all devices on my home (sub) network to
access my Linux machine and thus Clementine.
I can highly recommend the following two web pages from which I gleaned this
and other relevant info:
https://help.ubuntu.com/community/Gufw - whereby a Gui facility can be used
https://help.ubuntu.com/community/UFW - whereby terminal commands may be used
Hope this may help others :)
Original comment by nowpoe...@gmail.com
on 17 Nov 2013 at 12:43
Thanks for your detailed input! :-)
I think it will be useful for other users, too.
Original comment by asfa...@googlemail.com
on 17 Nov 2013 at 7:14
This project moved to GitHub. Please continue the discussion here:
https://github.com/clementine-player/Android-Remote/issues/2
Original comment by asfa...@googlemail.com
on 6 Dec 2013 at 11:16
I have a problem when i try to login to "box" from clementine to play the music
i have there. This problem happens in my laptop where i have windows 8.
Im attaching my steps in this coment.
Im not having the same problem in my work laptop where i use windows 7.
please help
Original comment by juan.guz...@gmail.com
on 23 Dec 2013 at 9:54
Attachments:
Indeed it was Firewall setting causing trouble. Only add a new public and
trusted port in your firewall (5500) and that's it.
For me is working nice ! only very little app interface details, but still a
great contribution.
P.S. I'm running Fedora 19 with Clementine 1.2.1 and Android 4.2
See ya !
Original comment by orlando....@gmail.com
on 17 Feb 2014 at 12:04
haha! i had a period at the end of mine and it didn't work. Maybe this simple
fix may help some simple person like me :) fun reading the thread too, Thanks
gang!
Original comment by likitysp...@gmail.com
on 5 Jul 2014 at 3:33
The 'magic line' for Ubuntu was for me to add the following rule to 'iptables'
sudo iptables -I INPUT (PUT HERE THE NUMBER BEFORE THE 'DROP ALL' without
brackets) -p tcp --dport 5500 -j ACCEPT
Best regards
Original comment by Marcel.R...@googlemail.com
on 23 Sep 2014 at 1:23
Original issue reported on code.google.com by
sg2chibi...@gmail.com
on 2 Mar 2013 at 8:29