getting client ip when connected through bluebox

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

Posts: 5
Joined: 18 Mar 2007, 15:45

getting client ip when connected through bluebox

Postby Eirik81 » 31 Mar 2008, 14:25

I have a custom login extension and need to get the ip address (for security purposes) of the client that is trying to log in. The following works when the client connects normally:

Code: Select all

function handleInternalEvent(evt)
   if ( == "loginRequest")
      var chan = evt["chan"];
      var ip = chan.socket().getInetAddress().getHostAddress();

But it fails when the client connects through the bluebox. Is there a way to get the client ip that works with the bluebox?
User avatar
Site Admin
Posts: 21340
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Apr 2008, 09:30

Unfortunately no, the BlueBoxed users will all appear to be connected from the localhost.
This is also explained in the BlueBox f.a.q.
...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 1 guest