What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-03 11:25:11
How to get client's IP address from brouser using JavaScript
// You can't extract the the public ip from with in the browser // but you CAN use a third party, there are a lot of them out there // I use www.ipify.org/ // because, according to them: // // 1. You can use it without limit (even if you're doing million... Add solution -
Python 2021-09-28 20:40:03
get external ip python
# This example requires the requests library be installed. You can learn more # about the Requests library here: http://docs.python-requests.org/en/latest/ from requests import get ip = get('https://api.ipify.org').text print 'My public IP address is:'... Add solution -
Javascript 2021-09-19 10:47:02
ipify api
<script type="application/javascript"> function getIP(json) { document.write("My public IP address is: ", json.ip); } </script> <script type="application/javascript" src="https://api.ipify.org?for... Add solution -
Other 2021-08-27 19:34:02
apiipify
# This example requires the requests library be installed. You can learn more # about the Requests library here: http://docs.python-requests.org/en/latest/ from requests import get ip = get('https://api.ipify.org').text print('My public IP address is: {... Add solution