I created a VM instance on Microsoft Azure using its Go Ethereum template. The node is running and syncing. However it does not allow me to access remotely. I ran geth attach on my local computer and got the following error:
Fatal: Failed to start the JavaScript console: api modules: Post http://104.201.38.85:8545: dial tcp 104.201.38.85:8545: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
My parameters are geth --rpc --rpcaddr 0.0.0.0 --rpcport 8545
. This should allow external access. I also checked security group and the inbound port 8545 is open. What is the reason that I cannot connect?