It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes how to identify Intranet/Interbet IP address? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "how to identify Intranet/Interbet IP address?" Watch "how to identify Intranet/Interbet IP address?" New topic
Author

how to identify Intranet/Interbet IP address?

achit bhatnager
Ranch Hand

Joined: Apr 19, 2002
Posts: 50
We have an application that logs the user IP address. Management wants to see a report how many requests were from with in the orgnization and how many from outside.
How can I determine wheather the given ip address is internal or external?
Thanks in advance.
Achit


-----------------------------------<br />"Life is game,Cricket is serious."<br />-----------------------------------
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8259

Ask your network admin what your organization's internal address range is. RFC 1918 specifies 3 blocks of addresses which are not assigned publically and are free for intranet use:
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
A hit from within these ranges should be from an internal client.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to identify Intranet/Interbet IP address?
 
Similar Threads
How to get country name from IP Address
How to extract country name from IP Address
How to extract country name from IP Address
ip address
How to get the client's ip address?