Home All Groups Group Topic Archive Search About


Author
18 May 2006 4:28 PM
Lance Beasley
The Request object has a property "userhostaddress" that returns the
requester's host IP address.  How could a "userhostport" be accomplished to
get the requester's TCP port?

--
Lance Beasley
ENCO Electronic Systems

Author
18 May 2006 6:36 PM
Mike Brind
Lance Beasley wrote:
> The Request object has a property "userhostaddress" that returns the
> requester's host IP address.  How could a "userhostport" be accomplished to
> get the requester's TCP port?
>
> --
> Lance Beasley
> ENCO Electronic Systems

The Request object has no such thing.  The Request.ServerVariables
collection has a variable called REMOTE_ADDR which returns the IP
address of the requester.  Request.ServerVariables("SERVER_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.public.dotnet.framework.aspnet.

--
Mike Brind

AddThis Social Bookmark Button