?
Solved

retrieve an IP address

Posted on 2004-03-24
4
Medium Priority
?
198 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 200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Simple Linear Regression
Starting up a Project
Suggested Courses

752 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