You can check the port number used in the following ways.
Locate the SQL Server Configuration Manager in the start menu "Microsoft SQL Server 2005"-"Configuration Tools".
Find the corresponding instance name under SQL SERVER2005 network configuration. To see if TCP/IP is enabled, you can double-click TCP/IP and look at the port number under the IP tab.