how i can access local web or database server remotely without static IP

流过昼夜 提交于 2020-01-02 05:22:10

问题


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

  1. MS SQL server remote acces without static IP address
  2. 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:


  1. Get a new Dynamic DNS
  2. Install the Dynamic DNS update software on the computer hosting the services.
  3. On your home internet router, forward the ports 80 and 3306 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!