简体   繁体   中英

Send notification to all the devices connected to a Wi-Fi network

Is there any way to send a notification to the devices which are connected to a particular Wi-Fi network?

Say, I have a Wi-Fi network named "My Wi-Fi", which is not secured, that is any one can connect. A public network.

There may be N-number of users connected to "My Wi-Fi". These users can perform any kind of transaction, say online payment.

Now if I want to turn off or shut down "My Wi-Fi" router or access point, these transactions may fail.

So before shutting down, I want to send a text notification to all the users connected to "My Wi-Fi" network. (User does not have any kind of app in their device, to push the notification.)

Is this possible?

There is no standard method of sending (pushing) a message to all devices attached to a Wi-Fi network. If there was a way, it would be easy to find the specification and point to how it is to be done. Unfortunately, it is difficult to prove the absence of something.

As you clearly realized, it would be possible to do so if an appropriate page which you control was open in a browser, or application running, on their device. You could develop a framework where users have to sign on and keep a page open, or application running, in order to connect to your Wi-Fi.

Given that you control the router, it would be physically possible for you to write code which intercepted the packets being transmitted through the router and inserted such a warning within the HTTP of pages being sent to the various connected devices. This assumes that they are using HTTP to view normal pages. You could, of course, also insert a warning in other protocols. Depending on your jurisdiction this might be illegal, or have other legal issues. I would consider doing so to be a Bad Idea™.

Wild suggestion, you could intercept the http request and reply with a custom http response which can display a banner saying that the router is about to be shutdown. With this any ongoing payment transactions would fail. Hope it helps.

There is no uniform answers to this. It depends on if you have access to the connection list. If you have access to the AP then it simplify things easier. If not, you can attempt to send a message all 254 IP addresses: 192.168.1.[1-254].

For users who are connected using WinXP or older. You can send a message using net send

For users who are connected using WinVista or newer. You can send a message using msg

For users who are connected using Linux. You can try: smbclient -M hostname message goes here

For users who are connected using MAC. I have not seen this yet.

Techincally, since a "handshake" is required to access the wifi, it may be possible to expand on that process.

ie router/modem/brouter/bridge IPv4 IPv6, etc. Add "Broadcast / Notify connected devices" tab.

if you can get a message from instagram about a new post, you should be able to to the same with connected devices on your network.

Just a thought.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM