Topic Path: Symbol Reference > Classes > TIdURI Class > TIdURI Properties > Port Property
TIdURI.Port Property

Represents the port portion of a URI.

property Port: string;

Port is a String property that represents the port to use for the identifer specified in URI. For example, a URI with the value "" would result in Port property containing the value "80". 

Often the Port property is not used because most URI's use a default port which is indicated by the protocol, as in "". The HTTP protocol uses port 80 by default. 

However, this value should be checked since port can be overridden by a port specified in the URI.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.