Skip to content

Telnet connection to pat on MacOS 15 doesn't work without turning off the firewall #460

@gunnarre

Description

@gunnarre

pat version: Pat v0.16.0 (823b991) darwin/amd64 - go1.22.2

Operating system and architecture: MacOS 15.0.1 (24A348), darwin/arm64, using darwin/amd64 via Rosetta.

I set up a listener on telnet. I also allowed pat through the application firewall with sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bin/pat. However when I tried to connect from WoAD 1.5.3 on Android 8.1, it did not work unless I turn off the firewall completely with sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off

If the bind address is blank "listen_addr": ":8774", the failure is silent. But if I input an IP address in the configuration, the log lines are

2024/10/19 09:43:25 Accept telnet failed: read tcp 192.168.10.149:8774->192.168.10.143:38482: read: socket is not connected
2024/10/19 09:43:25 Listener telnet failed: listen tcp 192.168.10.149:8774: bind: address already in use
2024/10/19 09:43:25 Will try to re-establish listener in the background...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions