|
|
|
@ -19,6 +19,7 @@ namespace Emby.Server.Implementations.Net
|
|
|
|
|
var retVal = new Socket(AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Dgram, System.Net.Sockets.ProtocolType.Udp);
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
retVal.EnableBroadcast = true;
|
|
|
|
|
retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
|
|
|
|
|
retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1);
|
|
|
|
|
|
|
|
|
@ -46,6 +47,7 @@ namespace Emby.Server.Implementations.Net
|
|
|
|
|
var retVal = new Socket(AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Dgram, System.Net.Sockets.ProtocolType.Udp);
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
retVal.EnableBroadcast = true;
|
|
|
|
|
retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
|
|
|
|
|
retVal.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 4);
|
|
|
|
|
|
|
|
|
@ -112,6 +114,7 @@ namespace Emby.Server.Implementations.Net
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
retVal.EnableBroadcast = true;
|
|
|
|
|
// retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
|
|
|
|
|
retVal.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, multicastTimeToLive);
|
|
|
|
|
|
|
|
|
|