Unable to connect to shinyapps.io

Hi all,

I have a application that connects my R to SQL. Below is the connection string. However when I publish this to shiyapps.io, I unable to connect

myconn <- odbcDriverConnect(connection = "Driver={SQL Server Native client 11.0};
                            server=localhost;database=NewDatabase;trusted_connection=yes;")

Below is the error I am getting. Can anyone help me deploy my application to Shinyapps.io

When your app is deployed to shinyapps.io, it runs on their servers, not in your local machine, so the app doesn't have access to your "localhost", you have to use the public IP of the sql server and make sure that the server accepts remote connections from the shinyapps.io IPs

1 Like

thanks for the suggestion

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.