Answers for "find address by ip number"

5

how to find the ip address of a phone number

print('this isnt posible')
Posted by: Guest on August-31-2021
1

Get IP address

from netifaces import interfaces, ifaddresses, AF_INET
for ifaceName in interfaces():
    addresses = [i['addr'] for i in ifaddresses(ifaceName).setdefault(AF_INET, [{'addr':'No IP addr'}] )]
    print('%s: %s' % (ifaceName, ', '.join(addresses)))
    
>>>
  lo: 127.0.0.1
  enp30s0: No IP addr
  wlp31s0: 192.168.1.56
Posted by: Guest on July-20-2021

Browse Popular Code Answers by Language