Results 1 to 8 of 8

Thread: How to get IP with ASP

  1. #1
    Join Date
    Nov 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to get IP with ASP

    How to get IP address with ASP?

  2. #2
    Join Date
    Nov 2005
    Location
    Karachi
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    try using the following ASP statements...

    Request.ServerVariables("REMOTE_ADDR")

    and/or

    Request.ServerVariables("HTTP_X_FORWARDED_FOR")

  3. #3
    Join Date
    Jan 2007
    Location
    Lahore, Pakistan
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hay my posts are deleted.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by satalways View Post
    Hay my posts are deleted.
    I think they're breaking in some new moderators around here or something. Don't worry about it, the question was already answered.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2007
    Location
    Lahore, Pakistan
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah! You are right. New Moderators are experimenting.

  6. #6
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    I don't think ASP is needed for that. however, I've never understood ASP at all.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  7. #7
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by techno_race View Post
    I don't think ASP is needed for that. however, I've never understood ASP at all.
    It's not entirely necessary, but it can access that information, just as PHP, VB.NET, Javascript, ... and so on. I never tried to learn ASP as PHP has been fine for my needs; but that doesn't mean that its not needed? If he is programming a page with ASP I think it would be better to continue with that language, rather then switch to another server-side language like PHP. so it really just depends on the needs/direction/development of the page

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boogyman View Post
    It's not entirely necessary, but it can access that information, just as PHP, VB.NET, Javascript, ... and so on.
    Whilst VB.NET probably can (with the .NET framework being the actual provider), ECMAScript implementations generally cannot. There might be a user agent around that provides that information through host objects, the vast majority don't. The only way that ECMAScript and its derivatives can is through a server-side language (generating code, including the IP address) or Java.

    Back the original topic for a moment (I know it's old): whilst one might get a IP address, it might not be the address of the visitor. It may be an intermediary client/server such as a caching or anonymising proxy, a gateway, or a NAT router.

Bookmarks

Posting Permissions

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