Hi,
Is there a way to get client ip address?
Thanks,
Xiaoli
browser client ip address.
Moderators: Jon, Steve, Ian, Dave
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
asperion
- Ebase User
- Posts: 8
- Joined: Sat Feb 02, 2013 8:24 pm
-
Steve
- Moderator

- Posts: 423
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
You can also use the client HttpServletRequest directly using JavaScript:
You can also use the client HttpServletRequest directly using JavaScript:
Code: Select all
//get remote ip address
client.request.getRemoteAddr();
//get remote host
client.request.getRemoteHost();
0 x
Who is online
Users browsing this forum: Bing [Bot] and 37 guests