Re: [vertx:14538] Remote address of a websocket??

171 views
Skip to first unread message

Norman Maurer

unread,
Dec 25, 2013, 3:10:51 AM12/25/13
to ve...@googlegroups.com
I think it should also be possible for websockets. What lang you use and which version of vertx?

Am 25.12.2013 um 06:40 schrieb Steven Hickerson <steve...@gmail.com>:

I see per the documentation and from searching previous posts, in version 2.0 of Vertx they added the ability to use remoteAddress() to get the remote IP address.  However they apparently only added it to NetSockets, and HttpRequests.  I need a way to get the remote IP address on a websocket connection.  I'm trying to set up a secure connection system where the client may disconnect and then reconnect, and I want to make it a little more difficult for hijacking to occur by simply passing in the ID of a previous connection.  I was going to record the remote IP address and only allow connections back using the previous socket id if it originated from the same IP address.

Does anyone know a work around for this?  I'm kind of surprised this function was overlooked in websockets if it was added to the other two, but it definitely complaints about it being an unrecognized symbol if I try to use it.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Steven Hickerson

unread,
Dec 26, 2013, 12:31:15 AM12/26/13
to ve...@googlegroups.com, norman...@googlemail.com
Sorry, guess I didn't delete that message fast enough.  It was implemented for websockets in version 2.1M2, it was not in version 2.0.2 which is what I was using when I first posted that message.
Reply all
Reply to author
Forward
0 new messages