Compatibility: 6.8.1 Internet Commands or higher only
Platforms: Windows and Mac OS
Under 4D Internet Commands 6.8.1 the command TCP_Listen has a new parameter behavior. In previous versions, if the variable remoteHost was left empty, it accepted an incoming connection from any machine. While this is still true under 6.8.1, in addition to this, the command will return into remoteHost the IP address of the connected machine.
Therefore it is now possible to filter the IP address of the remote host, making the process more efficient.
A quick example:
If ((vStatus=8) & (remoteHost="10.96.0.63")) `connection was established and desired IP connected
For more information, please take a look at the 6.8.1 Internet Commands addendum pg. 58 TCP_Open under TCP Commands.