Create local_addr.cc

Patch ipv6 => https://gist.github.com/yysfire/4538720