Is there a way I can get WiFi router information (mac address, ip address, and other if possible) of the WiFi router I am connected to using javascript? Preferred browser: chrome If it's not possible, what are my options?
Asked
Active
Viewed 2,875 times
1
-
1Other than the external IP address, you can't do that. – SLaks Feb 16 '15 at 19:57
-
how do I get external IP? – sarjan Feb 16 '15 at 20:01
-
you can use ajax to talk to the control panel, basically scraping the html and forging form requests, but it will be hard-coded for just a single router family... something like ajax("//192.168.1.1", mycb) – dandavis Feb 16 '15 at 20:07
-
@dandavis: No; same-origin policy. – SLaks Feb 16 '15 at 23:46
-
@SLaks: greasemonkey or tampermonkey can launch from the login page... also, some routers even provide an api for remote managment. – dandavis Feb 17 '15 at 05:03
2 Answers
0
No, there isn't any web browser API to get any local network connection information such as local router address, mac, etc.

Chris Pietschmann
- 29,502
- 35
- 121
- 166
-
What about other programming languages? C++, Javascript, Python or bash or powershell? – sarjan Feb 16 '15 at 20:05
0
If you have a modem bought at Orange (I don't know if there is Orange in your country), you can use any browser (Internet Explorer, Google Chrome, Torch, etc...) go on the website 192.168.1.1, username and password are both 'admin' then you will find all the info about the router (only if you are connected to it, of course)

LittleBobbyTables - Au Revoir
- 32,008
- 25
- 109
- 114

Manvir Lutchman
- 1
- 2
-
1Per http://stackoverflow.com/help/behavior, do not add signatures to your posts, and avoid self-promotion. I've edited the unnecessary information out of your answer. – LittleBobbyTables - Au Revoir Feb 17 '15 at 14:41