cherezov / dlnap

Simple python over the network media player to playback on DLNA/UPnP devices
MIT License
192 stars 60 forks source link

Fix bad server IP address #4

Closed NicoPy closed 7 years ago

NicoPy commented 7 years ago

When using a host with multiple network interfaces, socket.gethostbyname(socket.gethostname()) returns the IP address of one interface. If you are lucky, this is the one which can talk to the target. If you are not lucky...

To fix this, the app has to determine server address by "pinging" target.