Difegue / Stylophone

A pretty cool™️ MPD client in .NET. Based on MpcNET.
https://tvc-16.science/stylophone-27.html
MIT License
130 stars 10 forks source link

Can't use a string hostname as the server address #39

Closed connection-reset closed 1 year ago

connection-reset commented 2 years ago

Stylophone 2.2.0 does not connect to my mpd server when I enter its hostname or IPv6 address, it fails with:

Couldn't find an MPD server at this address!

When I enter the IPv4 address is connects immediately.

DNS works and resolves both IPv4 and IPv6 addresses. MPD listens on both addresses.

Difegue commented 2 years ago

Indeed, the underlying TcpClients used by MpcNET were initialized with the old IPv4 config, so it makes sense IPv6 wouldn't work 😅

I've modified the library code (https://github.com/Difegue/MpcNET/commit/6bcc61b57b6e3f16102868cce79ddbd2081cd389) to use dual mode sockets, so this should be solved in a future release.

chowbok commented 1 year ago

Specifying hostname still is not working. If this isn't an easy fix, then maybe just put a note in the dialog that it has to be an IP?

Difegue commented 1 year ago

Hmm I'm not sure if I've tried hostnames, the fix above was mostly for IPv6. Maybe hostnames aren't being translated to an IPEndPoint correctly! Might as well reopen this with a name change..

Difegue commented 1 year ago

Support for this should be available in the next update!