Solved

retrieve an IP address

Posted on 2004-03-24
4
197 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Progress
Introduction to Processes

688 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