title: Power BI: Published report can´t connect to the gateway
body: <p>I have a problem that I can not figure out. When I publish a report trough the Power BI Desktop, I get an error: </p>
  
  <blockquote>
    <p>Publishing succeeded, but the published report can´t connect to the
    data source because we were unable to find a gateway. Please install
    and configure an enterprise gateway</p>
  </blockquote>
  
  <p>I have installed and configured the  On-premises data gateway (today, so it is the latest version). local network status is connected. I have Azure Service Bus <strong>on</strong></p>
  
  <p>I also have configured datasource in the power bi and it shows connection successful. When I try to view the report on app.powerbi, I get the following error:</p>
  
  <blockquote>
    <p>This data source can´t be accessed by a data gateway: Server:
    localhost; Database: daa
    I don't know why it shows the server as local host. When I open the report from reporting services It shows the server connection as IP xx.xxx.xxx.xx WHY does it say now localhost?</p>
  </blockquote>
  
  <p>On the reportservice it works fine, but not when uploaded to app.powerbi</p>
  
  <p>I have no idea what to do next.</p>