0

I recently changed my password on EBay and it displayed two pieces of information, my IP address and my ISP Host.

I did not know ISP Host information was available through a browser, how would I go about requesting this information from the users using my web application.

Thanks in advance.

Benswana
  • 29
  • 8
  • 1
    The client IP address is always visible on server side. Otherwise the server couldn't reply to to client. – code monkey Mar 10 '15 at 10:12
  • I am after the ISP Host information as I can already extract the Client IP. thanks – Benswana Mar 10 '15 at 10:20
  • Every ISP Host has a specific IP range. So it is easy to check if your IP is in a specific range. There are maybe [some lists in the internet](http://serverfault.com/questions/151122/finding-all-ip-ranges-belonging-to-a-specific-isp). – code monkey Mar 10 '15 at 10:23
  • When I changed my password the ISP Host address was completely different to the IP address and couldn't possible be any part of its range. I have done a little research and as far as I can gather the ISP has a different IP to the client. Am I wrong in thinking this? – Benswana Mar 10 '15 at 10:25
  • 1
    IP addresses are sold/assigned to different organisations. Those assignments are mostly publicly known. For any given IP address, you can look up which organisation it's been assigned to. That's what you're looking for. – deceze Mar 10 '15 at 10:30
  • So the ISP host details are not sent over the browser? – Benswana Mar 10 '15 at 10:34
  • 1
    No, they are not sent. – code monkey Mar 10 '15 at 10:37
  • There's already an answer to your question at http://stackoverflow.com/questions/18837757/detect-isp-or-and-country-by-ip-address – Benoit Jansen Mar 10 '15 at 10:45

1 Answers1

1

The ISP information is not sent to the Agent (browser), but you can build a program that runs in the browser (not web server-side, because you'd get the server-IP instead the user-IP), for example, a servlet. In the servlet you can get the user-ip by requesting to some service/resource that retrieves that information, i.e.

Get the user IP

Get the IP details

After that you can use a HTML Parser for extracting and manipulating data (i.e. jsoup: Java HTML Parser

jherax
  • 5,238
  • 5
  • 38
  • 50