Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - display ip address
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

display ip address

 Post Reply Post Reply
Author
nickg View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 06 August 2003
Location: France
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote nickg Quote  Post ReplyReply Direct Link To This Post Topic: display ip address
    Posted: 06 September 2003 at 12:36pm

hi

I found on the forum a code to display ip of user

<%
IPAddr = Request.ServerVariables("remote_addr")
Response.Write("Your IP Address is " & IPAddr)
%>

but I got this error :

Erreur d'exécution Microsoft VBScript erreur '800a01f4'

Variable non définie: 'IPAddr'

/fweb7/default.asp, ligne 464

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2003 at 1:46pm

try adding "Dim IPAddr"

i think in english it means "Variable not defined"

so just do

<%
Dim IPAddr
IPAddr = Request.ServerVariables("remote_addr")
Response.Write("Your IP Address is " & IPAddr)
%>

or use

<%
Response.Write("Your IP Address is " & Request.ServerVariables("remote_addr"))
%>

umm soz bout the highlighted bits

Back to Top
nickg View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 06 August 2003
Location: France
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote nickg Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2003 at 3:14pm
it works well

MERCI
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.