2

how to get external ip address?

view story
linux-howto

http://www.linuxforums.org – Does anybody know how to get external ip address with c and socket? To make things clear, A linux machine may have multiple ip address, for example, 127.0.0.1 (local ip address) 198.12.1.12 (external address) if there a c function like getaddrinfo(..) which can get the external address(198.12.1.12), rather than the local address(127.0.0.1)? Thanks a lot. (HowTos)