The on-premises data gateway is a service installed on a server of the company network, which lets the online Power BI service access sources not exposed to the internet, for scheduled refresh or live queries. It uses credentials configured in the service.