Resolving IP Addresses

Resolving IP Addresses

I require Visual Basic code to resolve IP addresses stored in firewall logs generated by Checkpoint Firewall1. The aim is to report company access by user (assigned dedicated IP addresses). I have tried several Web site statistical packages with no success. Is writing a VB app the only solution?


You did not specify, but if you are using Microsoft Active Server Pages (ASP), you can resolve the IP address of incoming users by using this code in VBScript server-side scripting:

Dim IPAddressIPAddress = Request.ServerVariables("REMOTE_ADDR ")

After the previous code runs, the variable “IPAddress” will hold the IP Address of the user that is accessing the current page.


Share the Post: