Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion addons/deploy_to_steamos/SteamOSDevkitManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Runtime.InteropServices;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -26,7 +27,11 @@ public class SteamOSDevkitManager
/// <returns>A list of valid SteamOS devkit devices</returns>
public static async Task<List<Device>> ScanDevices()
{
var networkDevices = await ZeroconfResolver.ResolveAsync(SteamOSProtocol);
var ipv4Interfaces = NetworkInterface.GetAllNetworkInterfaces()
.Where(ni => ni.Supports(NetworkInterfaceComponent.IPv4))
.ToArray();

var networkDevices = await ZeroconfResolver.ResolveAsync(SteamOSProtocol, netInterfacesToSendRequestOn: ipv4Interfaces);
List<Device> devices = new();

// Iterate through all network devices and request further connection info from the service
Expand Down