Forum Moderators: open
I want to specify a different frame src depending on whether the user's ip address is of the 192.168.1.**** range of our internal lan, or whether they are an internet user xxx.xxx.xxx.xxx
The reason for this is that our connection doesn't support reverse lookups meaning our database server based at http://database.nortulities.com can't be accessed from machines behind the network, as we are all behind that IP address. database.nortutilities.com is our main server.
Therefore I need a javascript solution to detect whether the user is from the internet or from within our lan (obviously having the IP address 192.168.1.xxx)
Any help here is appreciated. I've managed to work out an if else for the ip address, but don't know how to change the src of the main frame to change.
Thanks