Skip to content

specify TCP port number #868

@adrianTNT

Description

@adrianTNT

Hello.
I was trying to connect to multiple nodes on same public ip address (yes over internet, yes, it is not secure). // I don't think there is any auth for that, no?

Anyway ...
When I connect and specify --host, the --port there is not TCP port nubmer, but serial/usb local hardware port path, no?

--port [PORT], --serial [PORT], -s [PORT]
                        The port of the device to connect to using serial, e.g. /dev/ttyUSB0. (defaults to trying to detect a port)
--host [HOST], --tcp [HOST], -t [HOST]
                        Connect to a device using TCP, optionally passing hostname or IP address to use. (defaults to 'localhost')

Is there any way I can specify different TCP port for my connections?
e.g I was trying:

meshtastic --host my.public.hostname --port 4403 --info
meshtastic --host my.public.hostname --port 4404 --info
meshtastic --host my.public.hostname --port 4405 --info

Maybe meshtastic cli source can be altered to add something like --tcp-port?
I was working on an a web interface for meshtastic (PHP and linux on back end) and secifying TCP port seems critical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions