PHP 7.0.4 , x86
Php_pdo_sqlsrv_7_ts_x86.dll driver
On the local machine connects
try { $db = new PDO('sqlsrv:Server=localhost\SQLEXPRESS;Database=db', 'sa', '1111'); } catch (Exception $e) { echo $e->getMessage(); } But no external address
sqlsrv:Server = IP; // ни так sqlsrv:Server = IP,1433 // ни так sqlsrv:Server = IP\SQLEXPRESS,1433 // и ни так SQLSTATE [08001]: [Microsoft] [ODBC Driver 13 for SQL Server] TCP Provider: Connection not established because destination computer rejected connection request.
Through SQL Server Management Studio connects to SRV \ SQLEXPRESS
The SQL Server Configuration Manager in the Native Client configuration shows the default port 1433 that is forwarded to the router
netstat does not know about 1433
