Share via

Is there a way to hide the wifi direct SSID?

Simon Bélanger 1 Reputation point
2022-10-04T19:57:47.51+00:00

I am currently developing a Wifi direct application using winrt C++ API, with legay setting (SSID and passphrase). I would like to hide this SSID broadcast for other device that scans for wifi. Is there a way to achieve this?

Developer technologies | Universal Windows Platform (UWP)
Windows development | Windows API - Win32
{count} votes

2 answers

Sort by: Most helpful
  1. Rachel Gomez 166 Reputation points
    2022-10-05T06:02:10.1+00:00

    Steps are given below-
    1.
    Open "http://192.168.1.1" (without quotation marks) from a browser. Enter "admin" into the "User Name" and "Password" fields to log in to your router.

    1. Select "Wireless," then "Basic Wireless Settings" from the menus. Set "SSID Broadcast" to "Disabled" (if your router operates on a dual band, do this for both the 5GHz and 2.4GHz configurations).
    2. Click "Save Settings" to hide your SSID.

    Netgear
    1.
    Open "http://192.168.1.1" (without quotation marks) from a browser. Enter "admin" into the "User Name" field and "password" into the "Password" field to log in.

    1. Select "Wireless Settings" from under Advanced in the left pane and then uncheck "Enable SSID Broadcast."
    2. Click "Apply" to save your changes.

    D-Link
    1.
    Open "http 192.168.0.1" (without quotation marks) from a browser. Select "Admin" from the "User Name" drop-down menu, leave the Password field blank and then click "Log In."

    1. Select "Setup," then "Wireless Settings" from the menus. Click "Manual Wireless Network Setup."
    2. Change "Visibility Status" to "Invisible," or check "Enable Hidden Wireless," and then click "Save Settings" to hide the SSID.

    Belkin
    1.
    Open "http://192.168.2.1" (without quotation marks) from a browser. Click "Login," leave the Password field blank and then click "Submit."

    1. Select "Channel and SSID" from under Wireless in the left pane and then clear the "Broadcast SSID" checkbox.
    2. Click "Apply Changes" to prevent the Belkin from displaying the SSID.

    This may help you,
    Rachel Gomez

    1 person found this answer helpful.

  2. Anonymous
    2022-10-06T03:03:07.83+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Update:

    I need the legacy settings to be enable for my device to connect with an SSID, but I do not need to broadcast this SSID.

    I have to say that currently there is no API in the WiFi direct could just hide the SSID as you want. Currently what we could do is to disable the legacy mode. I'd suggest you submit a feature request about this in the Feedback Hub. You could find the Feedback Hub in the Start Menu. Please select Developer Platform->API Feedback as the category when you submit your request. The related team will check the request.

    --------------------------------------------------------------------------------------------------------------------------------------

    I would like to hide this SSID broadcast for other device that scans for wifi. Is there a way to achieve this?

    If I understand you correctly, you want to hide your device when other devices are just scan for normal WiFi, right? When your app is broadcasting advertisements, you want to make your device only available for those devices which support WiFi Direct.

    If it is, you could take a look at the WiFiDirectAdvertisement.LegacySettings Property, it contains a WiFiDirectLegacySettings Class, you could set the WiFiDirectLegacySettings.IsEnabled Property to false to disable legacy mode, so this device will not act as a normal Wi-Fi access point. You don't need to hide the SSID because the noraml WiFi scan should not be able to detect your device after setting this property.

    You could do it when you are creating the WiFiDirectAdvertisementPublisher object, like this:

    WiFiDirectAdvertisementPublisher _publisher = new WiFiDirectAdvertisementPublisher();  
    _publisher.Advertisement.LegacySettings.IsEnabled = false  
    

    You could also take a look at the official WiFi Direct sample. In the scenario 1, this property has been set to true to enable the legacy mode. You could set it as false in your scenario.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.