Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
### | |
# Toggle an external light from the X1C screen | |
### | |
alias: Bambu Lab - Auto External Light | |
description: "" | |
trigger: | |
- platform: state | |
entity_id: | |
- light.x1c_chamber_light | |
from: null |
type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-title-card | |
title: Bambu Lab X1C | |
alignment: start | |
- type: custom:mod-card | |
card: | |
type: custom:mushroom-chips-card |
# Derived from this: https://github.com/gashton/bambustudio_tools/blob/master/bambudiscovery.sh | |
# Python implementation without need for linux | |
# Send the IP address of your BambuLab printer to port 2021/udp, which BambuStudio is listens on. | |
# Ensure your PC has firewall pot 2021/udp open. This is required as the proper response would usually go to the ephemeral source port that the M-SEARCH ssdp:discover message. | |
# But we are are blindly sending a response directly to the BambuStudio listening service port (2021/udp). | |
# Temporary solution to BambuStudio not allowing you to manually specify the Printer IP. | |
# Usage: |
Here are several different ways to test a TCP port without telnet.
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23