When I try to call bitcoin-cli on a remote host, I have success on mainnet, but I receive a connection error on testnet. Both work fine on localhost.
Expected behavior
I would expect that given similar bitcoin.conf settings, I would be able to connect to both mainnet and testnet successfully.
Actual behavior
See intro.
To reproduce
I have the following in my bitcoin.conf:
rpcallowip=127.0.0.1/0
rpcallowip=192.168.1.0/24
...
rpcbind=0.0.0.0
rpcbind=<LAN IP>
I have tried placing rpcallowip both on its own and under [test], and rpcbind is included under [test]. My local network is confirmed to be on 192.168.1.0/24. I even tried 0.0.0.0/0 with no luck.
System information
I am using Bitcoin Core version v0.19.0.1 on the remote host and v0.20.1.0 locally.
The remote host is running Ubuntu 20.04.1.