How to get IP address

E

eugeneg

I would like to include something in my FrontPage form that displays the IP
address of the viewer; ideally without any action by the viewer. How can this
be done please ?
 
M

Murray

Why bother? That IP address for that viewer could change each time they
visit, unless the viewer has a static address....
 
E

eugeneg

On my 'contact' page, because I want the sender to be aware that their
identity is traceable. On my 'remote support' page, because I want to be
able to connect remotely.
 
T

Thomas A. Rowe

This is easy to accomplish with server-side scripting.

If you are hosted on a Windows IIS web server and can use ASP, then in html/code view add the
following at the top of your page, your page will need to have .asp extension:

<%
RemoteAddress = Request.ServerVariables("REMOTE_ADDR")
%>

Then display it on a page use:

<%=RemoteAddress%>

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
M

Murray

ineloquent?

Anyhow, your use of a temporary IP address would only reveal your
unfamiliarity with how those things work, not any threat that the visitor is
traceable.
 
S

Steve Easton

To display the IP address when using an Apache server use this:
<!--#echo var="REMOTE_ADDR" -->

Here's an example:
http://www.95isalive.com/tricks/ipadd.shtml

However, it must be run in a .shtml page which might break your form.

Additionally, as others have said IP address change each time a user logs on to their ISP
unless they are paying extra for a static IP.

Also, AOL uses proxy addresses so there could be several AOL users hitting your site via the same IP address.

Also "On my 'remote support' page, because I want to be able to connect remotely" isn't going to work either.
It takes a lot more than an IP address to remote into a machine.

In my case, if my router doesn't stop you ( and it will ) my firewall will stop you.
( but you'll never get that far )


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
E

eugeneg

Thanks Steve. That's just what I needed.
Alas, SSI does not seem to be enabled/permitted on the server I use, but one
day I will move.
It doesn't matter that addresses are dynamic, as the user is reminded that
they are traceable. ISPs maintain logs of which accounts hold which IPs at
what time.
Eugene.
 
P

P@tty Ayers

eugeneg said:
Thanks Steve. That's just what I needed.

But is it an *eloquent* solution?


--
Patty Ayers | Adobe Community Expert
www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top