Hi Mahi,
Add the SAPms<SID> 36<nr> in the : c:\windows\system32\drivers\etc\services in both the servers of Portal & BI system and also try to do telnet hostname port from Portal to BI server and see what the outcome of it.
Let us know the status.
Regards,
Ram