Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Apr 10, 2024
2 parents e5e12dd + 2d7773d commit 52564e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArtNetSharp/ArtNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public async Task<IPAddress> GetLocalIP(IPAddress ip)
try
{
Socket testSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
testSocket.EnableBroadcast = true;
await testSocket.ConnectAsync(ip, Constants.ARTNET_PORT);
IPAddress localIpAddress = ((IPEndPoint)testSocket.LocalEndPoint).Address;
return localIpAddress;
Expand Down

0 comments on commit 52564e6

Please sign in to comment.