devxlogo

Resolving IP Addresses

Resolving IP Addresses

Question:
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?

Answer:

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.

See also  5 Tips for Working With an Onsite Interpreter
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist