I'm having a strange issue with port forwarding on two Macs running MacOS Monterey. Passing a port forwarding rule to
pfctl
such as rdr pass inet proto tcp from any to any port 58750 -> 127.0.0.1 port 58750
works fine in the loopback interface, but trying to connect to it using another Mac on the network results in a connection time out error. This issue doesn't happen with my iMac on MacOS Big Sur, and I can't think of any other reason for it. Doing some research yielded a couple isolated threads with similar issues after updating to Monterey, but no replies.