Thread: JS: show ip

  1. #1

    Registered
    01/06/03
    Location
    3020 Herent
    Posts
    750
    iTrader
    11 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/1

    JS: show ip

    Bestaat er een javascriptje om je huidige ip te tonen?
    no votes  

  2. #2
    den Acid Burn's Avatar
    Registered
    27/05/03
    Location
    Aarschot
    Posts
    2,403
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    tuurlijk,

    just google it!
    There are only 10 types of people, those who understand binary and those who don't.
    chown -R us ~/base
    aka N`Kr1pt
    no votes  

  3. #3
    [Scratch]'s Avatar
    Registered
    10/01/03
    Location
    Peer
    Posts
    338
    iTrader
    0
    Mentioned
    0 Post(s)
    Google doet toch wonderen soms

    Code:
    <!-- ONE STEP TO INSTALL IP ADDRESS:
    
      1.  Copy the coding into the HEAD of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    // http://www.kdcgrohl.com
    
    // Depending on your server set-up,
    // you may need to use the ".shtml"
    // extension [instead of the "html"
    // or "htm"] as the script uses Server
    // Side Includes. To display in the
    // title bar, exclude the
    //"<title></title>" code from the page.
    
    // This part gets the IP
    var ip = '<!--#echo var="REMOTE_ADDR"-->';
    
    // This part is for an alert box
    alert("Your IP address is "+ip);
    
    // This part is for the status bar
    window.defaultStatus = "Your IP address is "+ip;
    
    // This part is for the title bar
    document.write("<title>Your IP address is "+ip+"</title>");
    //  End -->
    </script>
    no votes  

  4. #4
    Lashknife's Avatar
    Registered
    17/07/02
    Location
    Boechout
    Posts
    3,081
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0
    dees is eigenlijk wel geen javascript, maar ssi, met plain javascript gaat dit niet

    andere links zeggen iets over java.net.InetAddress.getLocalHost().getHostAddress (); en dat dit enkel werkt in Netscape met java enabled, dus dat is ook al geen javascript
    Visit www.holysh1t.net and http://tv.holysh1t.net and join #qlpickup.eu for Quake Live CTF (and TDM) pickup!
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in