• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need client ip  RSS feed

 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am developing a web application. That web application will be hosted in a web server. At one point, I need to know the ip of the client which connects to the web server and uses the web application. I am trying to look for a javascript command that provides me that but so far I have found nothing. Can you help me please?

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript doesn't have access to this kind of information. You can use the HttpServletRequest.getRemoteAddr method in the web app.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!