Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to access sql server remotely without static ip. but with no-ip like site. But I don't know the procedure to do all that. Is there any step by step article.
Posted
Updated 26-Jan-22 0:31am
Comments
Richard MacCutchan 15-Jan-14 13:30pm    
The first question to answer is "how will you connect to this server, if not by IP address"?
Zoltán Zörgő 15-Jan-14 14:58pm    
By name.
Richard MacCutchan 16-Jan-14 3:32am    
And how will that work?
Zoltán Zörgő 16-Jan-14 11:57am    
Haven't you ever heard of no-ip, or other DDNS services? Of course there is DNS resolution in the background but does not need static IP. So the dynamic address given by the internet provider's DHCP server can be enough.
Richard MacCutchan 16-Jan-14 12:09pm    
No, but I will go and read about it.

If you use a service like no-ip or dyndns you probably have an adsl like connection and you have dynamic ip address. And you probably have an adsl-modem probably combined with a router. Now, you have to ensure following:
0) If you don't have any real IP address at all, than forget it.
1) Set up fixed local ip for your server, don't use dhcp for it.
2) You have to keep your dynamic name record up to date. Your modem/router can either do this, or you have to do it with the software tool provided by the dynamic dns provider from your "server". This is the case also when you don't have any router.
3) Those routers do NAT for you, and have firewall included. You have to configure SQL server to use a specific port and open that port on both the windows firewall and the firewall on the router (see port settings here: http://technet.microsoft.com/en-us/library/ms175043.aspx[^])
4) If you have NAT, you have to do port forwarding instead: you have to forward ports from outside your network to the ports (see link above) on the server. You don't need to have the same ports from outside, but in that case, you have to specify port in the connection string.
5) You could also move (on some routers) your server in a DMZ, but be aware, that your server will be exposed to all sort of attacks. In this case you should harden your server firewall.

That's much all. Still, it really depends on you exact architecture.
 
Share this answer
 
v3
You have no idea about what you're asking. NOTHING connects 'by name'. A name is just a human readable value that maps to an IP address. NOTHING connects to CodeProject.com, it uses that name to find out the IP address that it connects to, for example.

You can use a layer to map a static IP to a dynamic one. But, your server needs an IP address, for code to find it over the internet.
 
Share this answer
 
Comments
Zoltán Zörgő 16-Jan-14 11:59am    
You have misunderstood OP. It is not absolutely clear, but he simply asked about how he can use no-ip or other DDNS service to publish the server to the outside world. I don't say that's wise, but can be done of course.

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