Home > Article > Web Front-end > Can JavaScript Reveal Your Local LAN IP Address?
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!