net: add localAddress and localPort to Socket