Rob Spoor wrote:If you click on that link you are sure to see a few other methods that return other addresses. Try those first.
i tried it there are two methods for getting ip information - public SocketAddress getSocketAddress() and public InetAddress getAddress() - they give same address information.
actually i need three things - payload, source address and destination address (which is virtual interface in my case).