1、用HTTP协议访问Web服务器
http://user:password@www.baidu.com:80/dir/file.htm
2、用FTP协议下载和上传文件时
ftp://user:password@ftp.glasscom.com:21/dir/file.htm
3、读取客户端计算机本地文件时
file://localhost/c:/path/file.zip
4、发送电子邮件时时
mailto:tone@glasscom.com
5.阅读新闻组的文章时
news:comp.protocols.tcp-ip
端口号是用来识别要连接的服务器程序的编号,(比如qq就是一个程序,需要一个端口号来标识)几个常用的端口号
web :80
邮件:25