I am trying to connect an external server to my Ethereum node. Considering I don't want to use
--rpcaddr 0.0.0.0 (which it works)for security reasons, I am using the following command to start geth:
geth console --syncmode "fast" --rpcapi personal,web3,eth --rpc --rpcaddr 18.104.22.168 --rpcport 8545
but I get the following error:
Fatal: Error starting protocol stack: listen tcp 22.214.171.124:8545: bind: cannot assign requested address
How do I whitelist an IP address to the port 8545 correctly?