Is there a way to get the IP

Is there a way to get the users ip and link it the input of a form input.
Have tried various ways but it does not seem to work.

Community Page
Last updated: