Could not connect to Bitcoin RPC server outside local host using bitcoind-0.18.0
You need to explicitly bind it to 0.0.0.0 by using rpcbind=0.0.0.0

Read Andrew Chow's detailed response: Can&#39;t reach remote bitcoin rpc server