Forum Discussion
Power BI Desktop port changes everytime
Hi All,
We are trying to open port from a server (behind the firewall) to Power BI desktop installed on my local machine. I see that the port number is not static and changes for every pbi file. Is there a solution for this?
Thanks in advance
6 Replies
- v-juanli-msftCommunity Support
Hi Anonymous
Do you want to connect to Power BI Desktop model from other tools?
Please check if you retrieve Power BI Desktop Local Port as these ways:
https://www.biinsight.com/four-different-ways-to-find-your-power-bi-desktop-local-port-number/
Best Regards
Maggie- AnonymousNot applicable
Hi Maggie,
Thanks for your response. I know how to retrieve the port but my question was regarding the behavior of it. The ports are different for each PBI file opened in my PBI desktop so I wanted to know if there is a way to get a static port number for my local PBI desktop so we can open the connections from our server behind the firewall.
Thanks in advance
- v-juanli-msftCommunity Support
Hi Anonymous
Do you install any SSAS instance on your machine?
I would suggest you installing a SSAS instance on your machine.
I find a useful blog, this statement could explain why you see different port each time.
Power BI Desktop uses xVelocity technology and loads data into memory. It uses a local instance of SQL Server Analysis Services (SSAS). It does the job by running msmdsrv.exe file which can be found in “bin” folder under your Power BI Desktop installation folder which is normally under you Program Files. The msmdsrv.exe is indeed the SSAS service file. So even if you haven’t installed SSAS on your machine Power BI Desktop runs msmdsrv.exe. When Power BI Desktop runs msmdsrv.exe it creates a local instance of SSAS. This local SSAS instance uses a random port number so it would be valid until Power BI Desktop is not closed or the msmdsrv.exe is not killed from Task Manager.
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- pschaerFrequent Visitor
you may have a look at GitHub - pschaer/PBIPortWrapper: TCP port forwarding proxy for Power BI Desktop