nxt-server - Network server for the NXT brick
Contents
Common Options
Those options are common to programs using NXT-Python.
--backendNAME
Enable given backend. Can be used several times to enable several backends. One of usb,
bluetooth, socket or devfile.
--configNAME
Name of configuration file section to use.
--config-filenamePATH
Path to configuration file. Can be used several times to use several configuration files.
--nameNAME
Name of NXT brick (for example: NXT). Useful to find the right brick if several bricks are
connected.
--hostADDRESS
Bluetooth address of the NXT brick (for example: 00:16:53:01:02:03).
--server-hostHOST
Server address or name to connect to when using socket backend.
--server-portPORT
Server port to connect to when using socket backend.
--filenameFILENAME
Device filename (for example: /dev/rfcomm0), when using ~nxt.backend.devfile backend.
See nxt-python.conf(5) documentation for better explanation of the options to find the NXT brick.
Copyright
2021-2025, Nicolas Schodet
3.5.1 Jan 12, 2025 NXT-SERVER(1)
Description
nxt-server serves an interface to a connected NXT brick over the network.
The NXT brick can be connected using USB, Bluetooth or over the network.
Example
nxt-server--host00:16:53:01:02:03
Starting the server on a computer connected to a NXT brick, accepting connection on default port
2727.
nxt-test--server-host192.168.1.2
Assuming the first computer has address 192.168.1.2, remotely connect to the server to run a test.
Name
nxt-server - Network server for the NXT brick
Options
-p|–portPORT
Set the bind port. Same value must be given to the client using –server-port or inside Python
code. Default port is 2727.
--log-levelLEVEL
Set the log level. One of DEBUG, INFO, WARNING, ERROR, or CRITICAL. Messages whose level is below
the current log level will not be displayed.
See Also
nxt-python.conf(5)
NXT-Python documentation <https://ni.srht.site/nxt-python/latest/>
Synopsis
nxt-server [–backendNAME] [–configNAME] [–config-filenamePATH] [–nameNAME] [–hostADDRESS]
[–server-hostHOST] [–server-portPORT] [–filenameFILENAME] [-p|–portPORT] [–log-levelLEVEL]
