> In local.freenet, you wrote: > > 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? > > No. How are you going to guess whether I want the node to use > eth0 or eth1 on my Linux machine? Or 192.168.1.1, 192.168.2.1, > 192.168.3.1 or the only correct choice, which is my dynamic IP > from yet another interface?
Those are cases where you absolutly must set the address manually, which was true in 0.3 as well. I can't even think of a way to bind everything to a certain interface in Java. In any case, Oskar was right when he said the above only gives you 127.0.0.1. _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
