Hi Gautam
Kindly refer the SAP link
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/db8c45e873162ee10000000a1553f7/content.htm
also you can find the port details after your are connected the to SAP instance and open the command prompt type the 'netstat -a' it will display all the connection from the client to server
Regards
Ram