tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo v <>
Subject Question about websockets origin and remote addresses
Date Sun, 27 Oct 2013 20:53:31 GMT
Hello My name is Marcelo, i have a little web site and i am using apache
tomcat 8.0.0-RC5 and making use of JSR-356 websocket api ... (i followed
the ChatAnnotation example) ...
I almost finished the development when i found 2 problems ...

1) Is it possible to get the remote ip of the client on @OnOpen method ???
i was not able to find this answer

2) Is it possible to know the origin of connections ??? i mean the domain
of the page the connection was made ....

The first question is because i have a list of banned addresses already ...
The second is because i need a minimal check on that, because it is not
allowed the connections to be made from anywhere ...

It is the first question i make here ... probably there is not enough
information .. please let me know ...

Thank you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message