Open SQL server configuration manager of SQL 2005-- >; Expand network configuration->; Click MYSQLSERVER protocol-> Double-click TCP/IP-> Select the IP address and you will see the port number.