Good day. I am trying to connect with a PHP script (on hosting) to a computer with SQL Server. The problem is that the PC network through the router via ADSL go to the Internet under a single static IP. How in this case to make connection?
It is necessary to configure the so-called port forwarding on the router. In DLink, for example, this section is called Port Mapping. The port and the computer ip on the internal network are indicated, where the connection needs to be transferred. MySQL has default port 3306
Take an external IP for a computer with a server or reconfigure the router