clementine-player / Android-Remote

Control Clementine from your Android device
GNU General Public License v3.0
198 stars 80 forks source link

cannot connect: clementine player listen on tcp6 on a IPv4-only computer #200

Open yeupou opened 4 years ago

yeupou commented 4 years ago

Hi,

I cannot connect to clementine player 1.3.1. Not sure to fully understand the problem but it seems that it is expecting the flow on IPv6

# netstat -an |grep 5500
tcp6       0      0 :::5500                 :::*                    LISTEN     

Except that this computer is on IPv4 only:

# ifconfig | grep inet6

and within an IPv4 LAN.

So the failed connection is somelike like: remote on an android phone -IPv4/else->
-> public IPv4 address port 5500-> -> redirect to local LAN IPv4 address port 5500-> -x-> failing to reach clementine player on IPv6 port 5500.

tambux commented 4 years ago

Somewhat old Message, but I did not see any Answer, so here is my Kludge for the same Problem...

I found Clementine Remote App for Android, and my First Try it told me no Response from the Computer. I'm running Debian 10.4 and Clementine 1.3.1+git609-g623a53681+dfsg-1. From the logs I found out that the App is actually trying to connect to port 5500 (IPv4). Netstat is showing that Clementine listens to IPv6 like in the Original Post.

I'm using the Android in My Wifi network, on ZTE 4G usb network adapter. There seems not to be any IPv6 Options in the Config Interface. And to verify it's IPv4 only Network, Nothing showing in the Logs when trying to use the IPv6 Address for my Computer in the Android App. I have no Interest opening Clementine Port to the Public Internet.

I managed to redirect IPv4 to IPv6 with: socat TCP4-LISTEN:5500 TCP6:localhost:5500 and this had to be done before enabling the Port in Clementine.

Still trying to find out, How to enable IPv4 in Clementine...