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
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
| # 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: |
| blueprint: | |
| name: Appliance Notifications & Actions | |
| description: > | |
| # 📳 Appliance Notifications & Actions | |
| **Version: 3.8** | |
| 🤔 Watts your appliance up to, you're always in the know from start to finish! 🛎️🔌💸 |
| 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 |
| ### | |
| # 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 |
| --- | |
| apiVersion: helm.toolkit.fluxcd.io/v2 | |
| kind: HelmRelease | |
| metadata: | |
| name: &name mosquitto-printer | |
| namespace: homeautomation | |
| spec: | |
| chart: | |
| spec: | |
| chart: mosquitto |
| esphome: | |
| name: esp32-s3-touch-lcd-185 | |
| friendly_name: esp32-s3-touch-lcd-1.85 | |
| on_boot: | |
| priority: 600 | |
| then: | |
| - lambda: |- | |
| uint8_t config[2]; | |
| // 🔹 Gyro + Accel aus Standby holen |