How tools can I analyse WiFiDirectAdvertisementPublisher connectivity problems

50824634 20 Reputation points
2025-01-21T17:00:21.91+00:00

I am using the wifidirectadvertisementpublisher in an application to provide hotspot functionality utilizing wifidirectadvertisement.legacysettings. Once the application receives a notification that a client connects to the hotspot via the wifidirectdevice.connectionstatuschanged event we serve a web page on a specific port that enables clients to download some images via a web browser by entering the IP address of the hotspot and port.

On certain PCs, when the PC advertising the hotspot is simultaneously connected to a WLAN network, the client is unable to access the web page via the ip address and port. If the host PC disconnects the WLAN network or resets the WLAN adapter, the client can immediately access the web page.

It appears to me that ip address routing somehow is not working when clients access the web page when simultaneously connected to a WLAN network. The problem also appears to be related to the wireless network as the issue is reproducible when the hotspot publishing application is run on a different PC whilst connected to the same WLAN network. The IP addresses on the WLAN network are in the range of 192.168.0.002-192.168.0.255 with subnet mask of 255.255.255.0 so they should not be coming into conflict with the hotspot ip addresses in the range of 192.168.137.002-192.168.137.255 .

  1. Are there any network router configurations that are known to cause the type or problems described?
  2. What tools or logs can I use to analyze the problems when advertising a hotspot whilst simultaneously connected to a WLAN network? I have viewed the report generated by running the "netsh wlan show wlanreport" and also looked in the "microsoft-windows-WLAN-AutoConfig-Operational" windows event logs but neither appear to contain information about why the access attempts to the web page might be failing.
Universal Windows Platform (UWP)
{count} votes

Your answer

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