CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    9

    Getting the client's IP address using JavaScript.....

    Hi,

    I want to get the client's IP address for a particular reason. I tried using the command
    Request.ServerVariables("REMOTE_ADDR")
    but it is returning the proxy's IP address. I have to set the option "Skip proxy for local Intranet" to make this code work. Is there any way by which I can get the client machines IP address without doing anything to the proxy settings. Can get retrieve it using Javascript or some other kind of Client side scripting language.

    Thank You in advance

    Anand

    V. Anand,
    Flat No 201, DivyaSai Apts.,
    64 Pragathi Nagar,
    Yosufguda,
    Hyderabad - 500 045.

  2. #2
    Join Date
    May 1999
    Posts
    82

    Re: Getting the client's IP address using JavaScript.....

    Client side scripts (JavaScript and VBScript) do not have access to IP addresses, because it is considered a security risk. A server side solution is your only hope. I sugest you go to http://www.htmlhelp.com/wwwboard/ and ask Liam Quin how to get past your server side problem (he is the local Pearl expert). Good Luck!!!


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured