B
B
biblos2014-11-19 02:26:58
JavaScript
biblos, 2014-11-19 02:26:58

Is it possible to find out via JavaScript whether a visitor has entered the site from wifi or mobile Internet?

The question arose, is it possible to find out by means of JavaScript what type of connection a mobile user uses --- WiFi or not? Actual for smartphones / tablets under ios, android, microsoft mobile.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2014-11-19
Madzhugin @Suntechnic

No.
What for? If the question is speed, then you can find it out.

_
_ _, 2014-11-19
@AMar4enko

You can send an empty request to the server, and then check the client's IP address for belonging to a pool of IP addresses of cellular operators, the pools are known.

K
Konstantin Kitmanov, 2014-11-19
@k12th

var isWiFi = window.confirm('Вы через WiFi?');
Reinforced concrete working method :)
You probably want to know whether the user should download some large file or not - so ask him, let him decide. Maybe he has 4g and unlimited. Or maybe he sits in the "Coffee House" through the garbage Beeline Wi-Fi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question