Basically what i know in ASP is, u just need to type in as follow :-
RemoteAddress = request.servervariables("remote_addr")
Example in ASP :
Internal IP = 123.456.789
External IP = 987.654.321
IF left(request.servervariables("remote_addr"),9) = "123.456.7" then
Experts, Plz share out your ideas....