Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web Development
Expertise: Beginner
Oct 22, 1999

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 IPAddress

IPAddress = 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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date