Sysyphus_ 2 Posted February 24 Posted February 24 Hello. I'm contacting you because I have a problem with Emby Server with a Premium license concerning the DLNA server. My Windows Server 2019 server rebooted last night for an unknown reason and since then DLNA doesn't work anymore. Until a few hours ago everything was working fine and now I'm not sure why it doesn't want to work anymore. The only difference I can see is that yesterday I installed the DotNet 7 SDK and ASP Net Core 7. I reinstalled Emby Server but it didn't change anything. I do have an error in the DLNA logs, as follows: Quote 2025-02-24 10:19:10.055 Error DLNA: Error registering endpoint *** Error Report *** Version: 4.8.10.0 Command line: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows 10.0.17763 Framework: .NET 6.0.33 OS/Process: x64/x64 Runtime: C:/Users/Sysyphus/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 8 Data path: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\system System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (10013): Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été tentée. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Rssdp.SsdpCommunicationsServer.CreateSsdpUdpSocket(IPAddress localIpAddress, Int32 localPort, IPAddress[] localAddresses) at Rssdp.SsdpCommunicationsServer.BeginListeningForBroadcasts(CancellationToken cancellationToken) at Rssdp.SsdpDevicePublisher.AddDevices(List`1 devices, CancellationToken cancellationToken) at Emby.Dlna.Main.DlnaEntryPoint.RegisterServerEndpoints(CancellationToken cancellationToken) at Emby.Dlna.Main.DlnaEntryPoint.StartPublishingDevices(DlnaOptions options, CancellationToken cancellationToken) Source: System.Net.Sockets TargetSite: Void UpdateStatusAfterSocketErrorAndThrowException(System.Net.Sockets.SocketError, System.String) Thank you in advance for your support, as DLNA is completely indispensable in my home installation. Sincerely embyserver.txt
Sysyphus_ 2 Posted February 24 Author Posted February 24 Hello, Problem found, it is a conflict with https://github.com/logantgt/EcpEmuServer : DLNA launch if I deactivate EcpEmuServer, any ideas to launch these two servers ? Before I use https://github.com/logantgt/harmony-span without problem. Thx
sa2000 340 Posted February 24 Posted February 24 (edited) Normally this type of error is due to a clash on port numbers An attempt was made to access a socket in a way forbidden by its access permissions But not sure how it affects DLNA because as far as I can see we register the DLNA Server as a mediaserver and access it through tcp port 8096 You could enable Debug logging on the Emby Server and run the EcpEmuServer and then reproduce the error to see if that gives more info. Also doing this in an elevated command prompt window (Right click - Run As Administrator) netstat -a -b -n > %appdata%\Emby-Server\Netstat_2025-02-24a.txt and attach the resulting file with the emby server log with the debug logging Edited February 24 by sa2000
Luke 39624 Posted February 28 Posted February 28 Hi, that other program could be taking exclusive access over the port.
Sysyphus_ 2 Posted March 6 Author Posted March 6 (edited) Hello @sa2000, I pm you the files you asked For me, it's not the TCP port that are in conflict because EcpEmuServer use only the TCP port 8060 and both Emby web and EcpEmuServer config on web works well. It's seem that there is a conflict on UDP. What I didn't understand its why, with the old version of EcpEmuServer in Java : HarmonySpan, all work fine : both Emby with DLNA and HarmonySpan. Is there a special conflict between the way .NET use UDP ports ? Thank you. Edited March 6 by Sysyphus_
Luke 39624 Posted March 6 Posted March 6 When it opens the socket connection it is probably doing it in a way that takes exclusive access over it. That prevents other applications from binding to the same port.
sa2000 340 Posted March 7 Posted March 7 I suspect it is to do with how udp port 1900 is being used The netstat shows this for UDP and EcpEmuServer.exe UDP 0.0.0.0:1900 *:* [EcpEmuServer.exe] UDP 0.0.0.0:63651 *:* [EcpEmuServer.exe] and there is no mention in the netstat for udp port 1900 and EmbyServer. Normally there would be this showing but it is not the case on your PC UDP 0.0.0.0:1900 *:* [EmbyServer.exe] The log shows that Emby Server attempt to use udp port 1900 failing 2025-03-06 17:49:13.071 Debug App: CreateSsdpUdpSocket 0.0.0.0:1900 2025-03-06 17:49:13.081 Error DLNA: Error registering endpoint *** Error Report *** Version: 4.8.10.0 Command line: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows 10.0.17763 Framework: .NET 6.0.33 OS/Process: x64/x64 Runtime: C:/Users/Sysyphus/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 8 Data path: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\Sysyphus\AppData\Roaming\Emby-Server\system System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (10013): Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été tentée. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Rssdp.SsdpCommunicationsServer.CreateSsdpUdpSocket(IPAddress localIpAddress, Int32 localPort, IPAddress[] localAddresses) at Rssdp.SsdpCommunicationsServer.BeginListeningForBroadcasts(CancellationToken cancellationToken) at Rssdp.SsdpDevicePublisher.AddDevices(List`1 devices, CancellationToken cancellationToken) at Emby.Dlna.Main.DlnaEntryPoint.RegisterServerEndpoints(CancellationToken cancellationToken) at Emby.Dlna.Main.DlnaEntryPoint.StartPublishingDevices(DlnaOptions options, CancellationToken cancellationToken) Source: System.Net.Sockets TargetSite: Void UpdateStatusAfterSocketErrorAndThrowException(System.Net.Sockets.SocketError, System.String) 2025-03-06 17:49:13.083 Debug App: CreateSsdpUdpSocket 0.0.0.0:1900
Luke 39624 Posted March 16 Posted March 16 @Sysyphus_what if you open EcpEmuServer after Emby server?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now