<> > It cannot be done cleanly as it was. The old code read the IP address > off the socket every time it sent a message, but with self signed > references in 0.4 that is not realistic. It also doesn't ring well with > the support of multiple interfaces and protocol independence (the 0.3 > code was somewhat dubious in this, in that I had to attempt a somewhat > ugly generalization of the "host" and "port" structure.) > > The best bet is to add some platform specific stuff to the installation > programs (and maybe even the launcher), or simply have the installation > program contact a good Internet host and read the address of the socket > (though some users might be upset that that reveals their identity > unnecessarily).
A cross-platform solution (though a kludgy one) would be to open up a ServerSocket on port n, then have a Socket open up a connection to localhost:n, then read the IP with Socket.getLocalAddress(). Will that work? _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
