1 year ago
#363795
peet214
On Visual Studio Emulator, Mobile has no access to laptop networks
I'm working on a Xamarin app and need to connect to a database on a server on my local network. I can connect to the database using the server explorer in Visual Studio, but the connection string I obtain from there does not appear to work. "Unable to connect to any of the specified MySQL hosts." is the error I get. This is the string I use to connect to the server. Obviously, I substituted data with fakes: Data Source=134.2.512.6\\instance;Initial Catalog=dbname;User ID=user;Password=youshallnotpass;
MySqlConnection conn = new MySqlConnection(Constants.connectionString);
is how I connect.
Is it possible that it's because my emulation can't connect to the same networks as my laptop?
c#
xamarin
ssms
emulation
database-connection
0 Answers
Your Answer