[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1929
  • Last Modified:

Determine the IP address of the client machine ideally using JavaScript

Is there no way to determine the IP address of the client simply using JavaScript?

Basically am looking to give out some code to allow users to post their IP addresses to me, however I need to make this as generic/compatible as possible

1 Solution
There is no sure-fire way to grab the IP address of a user using client-side javascripting. You could grab the IP Address of a user using server-side scripting and display it using javascript. However, actually determining the IP address is impossible in the default (and most common security environment).

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now