I have just create a WildFire PlugIn that allow clients to discover their “REAL” IP address (that can be different from local address like 192.168… behind a wireless router by example).
In my plug in I use this line to discover the Host Address :
address = XMPPServer.getInstance().getSessionManager().getSession(packet.getFrom()).getCo nnection().getInetAddress()…getHostAddress();
But how can I get the PORT number ?
If I m behind a router… it is necessary for me to know the port number of the client…
Does someone can help me ?