Paid Advertising is
ha.ckers sla.cking
Who's got it? Who's giving it away? How to protect your privacy and steal it from other people. For intellectual privacy, personal privacy, and blackhats alike... 
Go to Topic: PreviousNext
Go to: Forum ListMessage ListNew TopicSearchLog In
Posted by: iota
Date: February 18, 2007 09:26AM

Dear sir

why does $_SERVER['REMOTE_PORT'] give out new port number each time a client connects to the server? eg. 60442, 14300

How does it deal with port 80?

Options: ReplyQuote
Posted by: kogir
Date: February 18, 2007 04:19PM

TCP clients usually connect from a random port in the 1024-65535 range whenever they establish a connection. In the case of HTTP, the client connects from a random local port to port 80 on the server.

Assuming that you're running a standard website, your script should report that $_SERVER['SERVER_PORT'] is 80 every time.

See also


Options: ReplyQuote

Sorry, only registered users may post in this forum.