Solved

retrieve an IP address

Posted on 2004-03-24
4
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

696 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