I'm getting this error sometimes when I try to connect to a mysql database using PHP:
"one usage of each socket address (protocol/network address/port) is normally permitted"
This is the connection string that I'm using:
$con4=mysqli_connect("127.0.0.1","usuario","senha","bd");
I'm using a Windows 10 with Wamp with PHP 5.6.40 and MySQL 5.7.24
I have already changed these regedit parameters to these values:
TcpTimedWaitDelay REG_DWORD: 0000001e (hex)
MaxUserPort REG_DWORD: 0000fffe (hex)
TcpNumConnections REG_DWORD: 00fffffe (hex)
TcpMaxDataRetransmissions REG_DWORD: 00000005 (hex)
One note is that it takes a couple of days to see the errors after I reboot the server.
Any advice is really appreciated!