Module ip

Module ip 

Source

Functionsยง

get_local_ipaddr
Retrieve the IP address of the default network interface.