add local-addr* and local-port* functions