© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
10 replies
Greenboat

NetworkInformation.GetConnectionProfiles() when broadcasting mobile hotspot in Windows 11

So I'm currently trying to build an application where devices can communicate over mobile hotspot (can't be internet, has to be a local network because they haven't got internet where this app needs to be used). While debugging, I set my PC to broadcast mobile hotspot whilst using a wired ethernet connection, connect my phone to the hotspot to ensure it's working and then call
NetworkInformation.GetConnectionProfiles();
NetworkInformation.GetConnectionProfiles();
. I look at the collection, and it only shows me the ethernet adapter, and my PC's bluetooth adapter, but not the wifi adapter which I'm fairly sure is there. If I unplug the ethernet cable and instead run my internet on wifi, the network adapter shows up when I call that method.

Am I doing something wrong? I just need to check if I'm running a hotspot so I know if my app can receive requests from other devices. Or, should I be using something else?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Touch number pad in Windows 11
C#CC# / help
4y ago
❔ Windows 11: Slow Settings Screen when Accessing VPN Settings
C#CC# / help
3y ago
Windows 11 Dev Drive - file types
C#CC# / help
3y ago