IP Address and ports

IP Address and ports

Bind Address

machbase-neo runs and listens to only localhost by default for the security reason. If clients on the remote hosts need to read/write data from/to machbase-neo through network, it requires that machbase-neo starts with bind address option --host <bind address>.

To allow listening from all addresses, use 0.0.0.0

machbase-neo serve --host 0.0.0.0

To allow listening from specific address, set the IP address of the host.

machbase-neo serve --host 192.168.1.10

Listening Ports

There are more flag options for the protocol ports.

flagdefaultdesc
--shell-port5652ssh listen port
--mqtt-port5653mqtt listen port
--http-port5654http listen port
--grpc-port5655grpc listen port
--grpc-sockmach-grpc.sockgrpc unix domain socket
--grpc-insecurefalsedisable TLS of grpc listen port
--mach-port5656machbase native listen port for JDBC/ODBC drivers

If a listener requires to listen different network interface, use listen host and port flags.

flagdefaultdesc
--mach-listen-hostvalue of --host
--mach-listen-portvalue of --mach-port
--shell-listen-hostvalue of --host
--shell-listen-portvalue of --shell-port
--grpc-listen-hostvalue of --host
--grpc-listen-portvalue of --grpc-port
--grpc-listen-sockvalue of --grpc-sock
--http-listen-hostvalue of --host
--http-listen-portvalue of --http-port
--mqtt-listen-hostvalue of --host
--mqtt-listen-portvalue of --mqtt-port
Last updated on