Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply

How to verify if the request originated from PBI Desktop or PBI on-prem gateway in Custom Connector?

We are developing a custom connector that supports both Power BI Desktop and Power BI on-prem gateway for Service. The connector user web.contents to fetch the REST API results from our database. 
We come across a blocker where we have to handle queries differently for the Power BI desktop and service in the same MEZ(custom connector) file. 

Any idea how to validate the request from the very first request sent from the clients(Desktop or Service of PBI)? It would be easy even if we know anyone unique specific parameter or header.

3 REPLIES 3

Thanks for the response.
Is there any other way to validate request via web.contents request initiated from desktop or server?

Same idea. Azure service uses a specific IP range. You find that in the documentation.

lbendlin
Super User
Super User

Gateways have a fixed set of IP addresses. 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors