request.userhostport

L

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?
 
M

Mike Brind

Lance said:
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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top