Skip to content

TCP Client

AIS-catcher -P host port [setting value] ...

To send raw NMEA as a TCP Client connecting to a listener:

AIS-catcher -P 192.168.1.235 4002
In this case, AIS-catcher acts as a TCP client and connects to the remote listener at 192.168.1.239 port 4002.

Summary Settings

Setting (JSON key / CLI setting name) Type Default Description
host string - Target TCP server host
port string - Target TCP server port
msgformat string NMEA Output format (NMEA, JSON_NMEA, JSON_FULL, etc.)
keep_alive boolean false Enable TCP keep-alive
persist boolean true Keep reconnecting when connection fails
uuid string - Unique identifier (must be a valid UUID)
include_sample_start boolean false Append sample-start counter to each NMEA line
json boolean false Deprecated — sets msgformat to JSON_NMEA
json_full boolean false Deprecated — sets msgformat to FULL

Filter and routing settings (see Message Filtering) also apply.