Home > Web Front-end > JS Tutorial > body text

Can JavaScript Reveal Your Local LAN IP Address?

DDD
Release: 2024-10-31 04:07:49
Original
268 people have browsed it

 Can JavaScript Reveal Your Local LAN IP Address?

Getting a User's Local LAN IP Address with JavaScript

Traditionally, retrieving a user's LAN IP address via JavaScript was considered impossible. However, the advent of the WebRTC extension in HTML5 has changed this.

WebRTC includes an API that allows JavaScript to query the local client IP address. Using this API, a proof-of-concept was created and can be found at net.ipcalf.com.

This feature is intentional rather than a bug. However, due to its potential for misuse, its stability cannot be guaranteed. Despite this, it is an effective way to demonstrate the information that browsers can inadvertently reveal about their users.

The above is the detailed content of Can JavaScript Reveal Your Local LAN IP Address?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!