Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I developing a software and its will work in Android. Also, for my Android App, I'm developing Windows App too and they all need to connect MSSQL Server.

I configure to SQL Server and I can connect SQL Server with Windows App and Android Emulator. But I can't connect my SQL Server with real Android Device. App throwing that error;

Network error IOException: failed to connect to 'My Computer Static IP' (port 1433): connect failed: ECONNREFUSED (Connection refused)
or
Network error IOException: failed to connect to /'My Computer Static IP' (port 1433): connect failed: EHOSTUNREACH (No route to host)


Already I'm setup to 1433 port for my SQL Server, but I can't connect. Please Help me...

Why I can connect with Emulator and Windows Form App but I can't connect with Real Android Device? Also I'm turn off Firewall.

Thanks for answer. Have a good day.
Posted
Updated 10-Feb-21 11:19am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900