hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
832 stars 202 forks source link

UPNP_E_SOCKET_BIND (-203) #157

Closed sonvirgo closed 6 years ago

sonvirgo commented 6 years ago

macOS High Sierra, works for last 2 days. Today stop working. I also run shairport-sync and do some network tunnning, so what is the cause?

INFO  [2018-03-11 19:44:52.190362 | webserver] Provide /upnp/rendercontrolSCPD.xml (text/xml) from buffer
ERROR [2018-03-11 19:44:52.194607 | upnp] UpnpInit(ip=192.168.13.102, port=49494) Error: UPNP_E_SOCKET_BIND (-203)
ERROR [2018-03-11 19:44:52.194641 | main] ERROR: Failed to initialize UPnP device
sonvirgo commented 6 years ago

Please close, my ugly, this is due to MiniUPnP. I thinks MiniDLNA shares libupnp but it use it own upnp. Also SO_REUSEADDR does not work as expected for datagram sockets on Mac OS X. Thanks

P/s however the PORT reported is incorrect. After an hour of LLDB debug, I found the conflict port is 1900 SSDP_PORT.