Allow obtaining local address and port.