Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser support #32

Closed
Richienb opened this issue Jun 30, 2020 · 5 comments · Fixed by #36
Closed

Browser support #32

Richienb opened this issue Jun 30, 2020 · 5 comments · Fixed by #36

Comments

@Richienb
Copy link
Contributor

Richienb commented Jun 30, 2020

At least the asynchronous part, in theory, should be possible.

Here's my browser implementation of internalIp.v4().

@sindresorhus
Copy link
Owner

What's the use-case? The use-case is clear for servers, but in what situations would you need this in the browser?

@kl3sk
Copy link

kl3sk commented Jul 15, 2020

For example, hide or show some website part for a specific IP (in a internal app).
This is a use case I want to implement.

@Richienb
Copy link
Contributor Author

What's the use-case?

Doing this sort of thing has gained traction in a StackOverflow question:

https://stackoverflow.com/q/20194722/8384910

@sindresorhus
Copy link
Owner

Alright. PR welcome.

@silverwind
Copy link
Collaborator

Wort mentioning, some software blocks this method as it's considered a privacy issue:

https://github.com/gorhill/uBlock/wiki/Prevent-WebRTC-from-leaking-local-IP-address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants