Mobile app version of vmapp.org
Login or Join
Murray432

: Javascript Requester IP Address Is it possible to get a visitor/requester public (WAN/external) IP address with pure Javascript? IE. without the use of additional JS libraries like jQuery? If so,

@Murray432

Posted in: #IpAddress #Javascript #Jsp #LookingForAScript

Is it possible to get a visitor/requester public (WAN/external) IP address with pure Javascript? IE. without the use of additional JS libraries like jQuery? If so, how?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

Javascript runs on the client, which may have multiple network conenctions, which may be behind firewalls and NATs. You will only be able to retrieve the IP address once the connection has been made outside of the network.

You could call a service that just bounces back the IP address, but this requires having the service and bandwidth set up.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme