how to get clients external IP in java extension
Posted: 08 Jul 2011, 13:36
Once client is connected,
how can I access his WAN IP
in server side Java extension?
nobody?
I was able to get LAN IP with this:
but WAN IP seems like big NONO
with AS2 in current Adobe Flash player.
Seems like I can only get PHP output on local
domain... not from external server.
Obviously PHP server will be external to user.
Is even users external IP visible from SFS server?
how can I access his WAN IP
in server side Java extension?
nobody?
I was able to get LAN IP with this:
Code: Select all
String checkIP(SocketChannel ch)
{
return ch.socket().getInetAddress().getHostAddress();
}
with AS2 in current Adobe Flash player.
Seems like I can only get PHP output on local
domain... not from external server.
Obviously PHP server will be external to user.
Is even users external IP visible from SFS server?