Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atmResource.getRequest().getRemoteAddr() always returns "0.0.0.0" on WildFly 14 with websockets #2370

Open
ronnybremer opened this issue May 24, 2019 · 2 comments

Comments

@ronnybremer
Copy link

For audit reasons I need to know the IP address of the invoking party of our web socket services. According to a post from a couple of years ago, you can get the underlying request through atmResource.getRequest() and use getRemoteAddr() from there. However, running behind Wildfly 14 and using web sockets I always get back "0.0.0.0". There was a similar issue in request #757 behind Tomcat, but that one is also years old.

In a rest endpoint in the same WAR I can successfully get the remote IP address.

Any idea?

Thanks,
Ron

@jfarcand
Copy link
Member

In a rest endpoint in the same WAR I can successfully get the remote IP address.

Have you try with another container to see if that work? Could you share a test case? Thanks

@ronnybremer
Copy link
Author

ronnybremer commented Jun 2, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants