A Digital Age Deserves A Digital Leader

How to read vista client's IP address from servlet

How to read vista client's IP address from servlet

Postby ysreddy » Thu Oct 16, 2008 5:23 am

Hi,
I am using the following code in my servlet to get the client's IP
address.req.getRemoteAddr( )

It is working well with 2000 and XP clients where as with Vista clients I am getting the IP address as "fe80:0:0:0: 591d:dea: 2c03:7e79" (IPv6 address). How to get the actual IP address (IPv4) from vista clients. Anybody please help me.

Thanks in advance
Y S Reddy
PRO New Member
Posts: 1
Joined: Thu Oct 16, 2008 5:18 am

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 6 guests

cron
cron