Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get ip address py

import requests

# Prints public IPv4 address:
print(requests.get('https://utilities.tk/network/info').json()['ip'])

# Prints more info like location, hostname etc
print(requests.get('https://utilities.tk/network/info').json())
Source by github.com #
 
PREVIOUS NEXT
Tagged: #ip #address #py
ADD COMMENT
Topic
Name
8+1 =