request.userhostport

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lance Beasley

    request.userhostport

    The Request object has a property "userhostaddres s" that returns the
    requester's host IP address. How could a "userhostpo rt" be accomplished to
    get the requester's TCP port?

    --
    Lance Beasley
    ENCO Electronic Systems
  • Mike Brind

    #2
    Re: request.userhos tport


    Lance Beasley wrote:[color=blue]
    > The Request object has a property "userhostaddres s" that returns the
    > requester's host IP address. How could a "userhostpo rt" be accomplished to
    > get the requester's TCP port?
    >
    > --
    > Lance Beasley
    > ENCO Electronic Systems[/color]

    The Request object has no such thing. The Request.ServerV ariables
    collection has a variable called REMOTE_ADDR which returns the IP
    address of the requester. Request.ServerV ariables("SERVE R_PORT")
    should give you what you want.

    Wait a minute - you're talking .NET aren't you? This is a classic asp
    newsgroup. ASP.NET is totally different. Try over at
    microsoft.publi c.dotnet.framew ork.aspnet.

    --
    Mike Brind

    Comment

    Working...