Hello, I'm trying to obtain my local (not the external) IP address using the getaddrinfo() function, but I saw the examples provided here, and they where too complex for my needs. Also saw other posts and most of them really wanted to get the external IP, not the local one.
Could anyone provide a link to a simple example (or a simple example) about how to obtain my own local IP address using this function ?
Just to be clear when I say local, if a router is 192.168.0.1
, my local IP address could be something like 192.168.0.x
( just an example ).