or with psutils module (
[https://github.com/johnscillieri/psutil-nim](https://github.com/johnscillieri/psutil-nim)
)
import psutil
echo net_if_addrs()
Run
We have a dedicated proc for this in the net module:
[https://nim-lang.org/docs/net.html#getPrimaryIPAddr](https://nim-lang.org/docs/net.html#getPrimaryIPAddr)
If you want to get the [IP
address](http://net-informations.com/python/net/ipadress.htm) of whichever
interface is used to connect to the network without having to know its name,
you can use this:
import socket
def get_ip_address():
s = socket.socket(socket.AF_INET, soc