Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

c# - Can I specify which adapter is used when creating a legacy Wifi Direct Soft Access Point in Windows 10 UWP .NET SDK?

I am attempting to use Wifi Direct to create a hotspot for my local computer to connect with my VR headset. I want to connect one AP to the internet to handle all the internet traffic, and my other AP as a dedicated connection.

I want to write some software to set up this unusual configuration. I downloaded the Wi-Fi Direct sample from MSDN, and read through the code. There doesn't seem to be any code specifically selecting an adapter from which the Wi-Fi direct connection is initiated.

How might I force a direct wifi connection to use a specific adapter, using C# code?

question from:https://stackoverflow.com/questions/65623775/can-i-specify-which-adapter-is-used-when-creating-a-legacy-wifi-direct-soft-acce

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

WiFi Direct will only be able to use the first adapter that is enumerated by the system. You could not use C# code to specify an adapter for a WiFi connection. The only way to alter the behavior is to disable the other WiFi devices in device manager to ensure that the one you want to use is selected.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...