JavaScript Visitor IP Address and Host Name

Cost-free and advertising-free. But a link to this page is appreciated.
Note: This service comes with NO GUARANTEES. No liability is assumed.

  • A free and simple JavaScript code to tell your visitors what their IP addresses and Host names are. The information is displayed to the users at your desired location on your Web pages.
  • The client IP address is stored in variable "VIH_HostIP". The client host name, if available, is stored in variable "VIH_HostName". You can use these variables in your own JavaScript code, if desired.
  • You can omit the "VIH_BackColor", "VIH_ForeColor", "VIH_FontPix", "VIH_DisplayFormat", and "VIH_DisplayOnPage" parameters. Default values will be used in that case.
  • "VIH_DisplayFormat" allows you to format the display to your liking. For example, instead of the default English, you can use terms from your own language, or make any other desired adjustments, like omitting the IP address.
  • If "VIH_DisplayOnPage" is set to "no", client information will not be printed. This option is useful if you want to use your own JavaScript code utilizing the "VIH_HostIP" and/or "VIH_HostName" variables.

  • To get DNS information on an IP address, such as the host name, try Reverse whois.
  • Want complete information about your own connection? Try My IP Address/Whoami.
  • Want to script this yourself using server-side code? Read blog entry, IP address and Host name Scripts.

  • Here's the simple JavaScript code to display visitors' IP addresses and host names (copy and paste to your Web page):

    <script language="JavaScript">
    VIH_BackColor = "palegreen";
    VIH_ForeColor = "navy";
    VIH_FontPix = "16";
    VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
    VIH_DisplayOnPage = "yes";
    </script>
    <script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
    Here is what the user will see: (Data will vary depending on user's point of access.)


    Have a comment about the JavaScript Visitor IP Address/Host?
    View/Add comments

    *** FREE from hashemian.com *** see descriptions
    JavaScript Countdown/Count-up Timer/Clock JavaScript Web Page Load Time JavaScript Web Page Commenting JavaScript Visitor IP Address/Host
    HTML Form Submission Tool Email/String Encoder/CAPTCHA Hit Counter; Page Counter Connection Probe
    Reverse Whois Browser Simulator/emulator My IP Address, Whoami Whois
    Mail Exchanger (MX Record) Lookup Search Engine Rankings JavaScript Thousand Separator Windows File Search Utility
    Atomic Clock/Current Time Short/Small URLs Atomic Fortune Teller Port Scanner
    Generate Password Google/Yahoo Maps Web Page Load Timer Ping
    HTML, URL, Decimal Encoding/Decoding Form Post Tester/Viewer Web Scratchpad/Notepad/Clipboard RSS/ATOM Web Widget
    HTML/CSS Color Test  


    Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

    © 2001-2009 Robert Vahid Hashemian
    Support the effort
    Liked this page?
    Please consider creating a link to it
    from your Web site.

    hashemian.com
    هاشمیان.com

     Home

     Blog

     Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
    Usage

     News

     Articles

     FAQ

     About

     Contact

     Financial Markets Book
    Read Complete Book



    KITCHEN
    Hoover U5140-900 Tempo Widepath Bagged Upright Vacuum
    $69.99


    KITCHEN
    Hoover F5914-900 SteamVac with Clean Surge
    $249.99


    KITCHEN
    Cuisinart 1-1/2-Quart Automatic Ice Cream Makers
    $70.54


    MUSIC
    My Maudlin Career
    $14.98


    DVD
    Brainy Baby : ABC's : Introducing the Alphabet (Ages 2 to 5 Years)
    $19.95

    more…




    Get Kindle

    aStore - Hashemian.com on Amazon

    Visits: Powered by hashemian.com

     

     

     

     

     

    Search Hashemian.com





    Standalone 4ch Digital Video Recorder with 4 Cameras
    $393.00
    Ends: Mon Jul 6, 2009 19:20:00 EST


    USB Cable for Sanyo Xacti Digital Cameras VPC-E760
    $5.23
    Ends: Mon Jul 6, 2009 19:27:10 EST


    72mm Close Up Lens for all 72 mm cameras free case new
    $21.99
    Ends: Mon Jul 6, 2009 19:29:10 EST


    CCTV 4 Cameras Video Surveillance Security System
    $199.00
    Ends: Mon Jul 6, 2009 19:39:00 EST


    LOT SECURITY CAMERAS BURGLAR WARNING SIGN+CAMERA DECALS
    $9.90
    Ends: Mon Jul 6, 2009 20:06:12 EST

    more…