Solved

retrieve an IP address

Posted on 2004-03-24
4
192 Views
Last Modified: 2010-04-17
hi,
does any know how i can get the iP adress of my local machine on a web page using asp?
thanks a mil.
0
Comment
Question by:Sycon1
4 Comments
 
LVL 6

Accepted Solution

by:
pillbug22 earned 50 total points
ID: 10671402
strRomoteIP = Request.ServerVariables("Remote_Addr")

or

strRomoteIP = Request.ServerVariables("Remote_Host")

0
 
LVL 4

Expert Comment

by:bdunz19
ID: 10671451
lol... well you posted this question in the wrong topic, but I happen to know the answer:

Request.ServerVariables("REMOTE_ADDR")

That will return the IP address of the machine that is viewing the web page. So if you are looking at the page it will return your IP address.

Brandon
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now