Let us consider there are two networks 1) home network and 2) office network.
I have an application which will get the system IP and MAC Address of the installed machine while launching the application.
Since both the (home/office) are private networks, when I launch the application it will get the IP address within one of the below ranges of private IP's.
10.0.0.0 through 10.255.255.255 172.16.0.0 through 172.31.255.255 192.168.0.0 through 192.168.255.255
My question is there any way to differentiate between home network and the office network while launching the application.
For example if I launch the application inside office network, my IP falls wih in the range
172.16.0.0 through 172.31.255.255
And if I launch the application in home network my IP falls with in the range.
192.168.0.0 through 192.168.255.255
If this is the configuration always, we can easily identify between home and office networks.
But there are possibilities the user can change his IP address to his office range while lauching within home network.
If that is the case how one can identify from which network the user's system IP came from?
Any help would be appreciated...