Click here to Skip to main content
15,913,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to Connect SqlServer Database in Remote Server.I want to connect Without Static IP .But i have Internet Connection(Connecting Remote Sqlserver Using Only InternetConnection.don't use Static IP).
Posted

1 solution

Use DNS to get the current IP address each time you connect.
See the IpHostEntry class and the Dns.GethostEntry() method in System.Net. Of course the proper port will need to be opened in the firewall on the Sql Server remote node for the connection to work, and you will need to be able to authenticate (if it's not in the same Windows Domain/ workgroup then windows authentication won't work).
 
Share this answer
 

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