问题
how i can access my local web server or database server access remotely without static ip address, i have desktop database driven app which is saving data in MS SQL server i want to access data on company current site hosted on bluehost, is there any way to access following points
- MS SQL server remote acces without static IP address
- Or I will write a web service in PHP connected with MS SQL database sending REST API information to online site how to access local web server without static ip address
回答1:
- Get a new Dynamic DNS
- Install the Dynamic DNS update software on the computer hosting the services.
- On your home internet router, forward the ports
80
and3306
to the computer hosting the services.
That's it, you should now be able to connect to the WebServer
and MySql
database by pointing your requests to, i.e.:
mycomputer.no-ip.me
回答2:
You can use the www.noip.com service. They have a service for people who have an ISP that doesn't provide an static external ip. You can get a hostname, example: yourname.no-ip.org and you run no-ip's client on your pc that will check if your external ip changes. If it does, it will automatically fix the necessary dns changes for your hostname, so the hostname points to your new ip.
Or you got similar providers like dyndns.
EDIT: Don't forget that you might have to port forward the ports for the services you are trying to reach outside of your network. (Examples: www.portforward.com)
来源:https://stackoverflow.com/questions/29870119/how-i-can-access-local-web-or-database-server-remotely-without-static-ip