getLocalAddress

Local TCP address assigned to the connected socket, or null before connection, after close, or when the injected socket does not expose it.