clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.71k stars 670 forks source link

IPv6 support #5303

Open MRZA-MRZA opened 8 years ago

MRZA-MRZA commented 8 years ago

I want to remotely connect to Clementine running on my desktop PC, but then I open Preferences → Network Remote I only see ipv4 addresses, but I want to use ipv6 address. I tried to use default port 5500 but I can't connect using Android app. I allowed connection to port 5500 port in my firewall but port scanner reports that port is closed.

ghost commented 8 years ago

What is the scanner you used to test the port ?

Ferroin commented 8 years ago

I can confirm this on Linux with a version built from 25326b4f4a93d27f6118779cfa38e29dbb19ad79. I checked ports locally with netstat and remotely via nmap and multiple other tools.

Interestingly IPv6 seems to work correctly on Windows (at least, it works correctly for link-local addresses).

MRZA-MRZA commented 8 years ago

I used http://www.ipv6scanner.com/ It can see my port 21 open and I can remotely connect to my ftp server.

Ferroin commented 8 years ago

Are you on a native IPv6 network, or is it SLACC with link-local addresses (fe80:: prefix) and NAT, or is it through a tunnel broker? As odd as it sounds, I've seen stuff before on Linux that only works on native IPv6 and not through tunnels, as well as stuff that refuses to use link-local addresses.

MRZA-MRZA commented 8 years ago

I have native IPv6 address.

Ferroin commented 8 years ago

OK, that at least means that it's not network configuration specific, as I had tested with a tunnel broker and lSLAAC+NAT.

Ferroin commented 8 years ago

OK, looking at the code, I think this may be a bug in Qt. I don't have anywhere near enough C++ experience to be certain, but it appears we're just directly using Qt's TCP server implementation for the network remote stuff.