Re: Get local ip address

2020-01-11 Thread enthus1ast
or with psutils module ( [https://github.com/johnscillieri/psutil-nim](https://github.com/johnscillieri/psutil-nim) ) import psutil echo net_if_addrs() Run

Re: Get local ip address

2020-01-08 Thread federico3
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)

Get local ip address

2020-01-08 Thread berkninan
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