Skip to content

Commit

Permalink
Try fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Apr 10, 2024
1 parent e639df9 commit 2d7773d
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 2d7773d

Please sign in to comment.