Anyway, I could connect to terminal server which I created myself.
> .\winmain_server_001.exe
\php> php -f .\client_001.php
<h2>TCP/IP Connection</h2>
OK.
Attempting to connect to '127.0.0.1' on port '27015'...OK.
Sending HTTP HEAD request...OK.
Reading response:
Closing socket...OK.
I'm pleasure if you download the below.
https://github.com/WaitrudWeber/source_zip/blob/master/winmain-php-20181224.zip
Please reffer to the below for compilation.
https://waitrudweber.hatenablog.com/entry/2018/05/01/005938