Configuring TCP port monitoring.