Actually it's part of the TCP connect routines. By opening a TCP socket and
connecting to an external destination you can use getsockname() after the
socket is connected to find out what IP address was used as a source for
your end. Since ERef doesn't support the conf-box (and never will, that's a
WP only thingy and I'd rather not get into the legal issues of reverse
engineering in the US). However I may have to look at what would happen if
I just had a listening socket on 7648, let the WP clients connect to it,
then close the socket, all depends on when WP gives a call to getsockname().