0

I've a Windows Server VM on Azure where geth is running quite good (no mining, just node).

Now, the "start command" is:

geth --rpcapi "eth,web3,db,net,personal,admin" --rpcaddr "10.0.0.4" --port "30303" --rpccorsdomain "*" --rpcport "8545" --rpc --ws --wsaddr "10.0.0.4" --nat "any"

From the Virtual Machine itself, I can go on the browser and write

 http://10.0.0.4:8545 

And everything is working. From "outside" I try to access to

http://virtualmachineip:8545

And I get a Timeout, event if the firewall rule I configured is TOTALLY permissive like:

enter image description here

What could be the problem?

Thanks

Ziba Leah
  • 2,484
  • 7
  • 41
  • 60

2 Answers2

1

Make sure there is no firewall to blocking the access traffic.

Then you can try to geth with --rpcaddr "0.0.0.0" to allow all address when you want to access from outside.

Also, check if network connectivity is normal by running telnet command from the host you access to node:

telnet virtualmachineip 8545

For more reference, see this case and Common Problems With Connectivity.

Nancy
  • 26,865
  • 3
  • 18
  • 34
0

Basically it's not enough to enable the firewall rule on Azure portal.

In order to "open" the machine, also the "in virtual machine" configuration is needed.

So:

  • Inside the virtual machine:

    1) virtual defender firewall

    2) Advanced

    3) Inbound rules

    4) Add rule on port 8545

  • In azure portal, on Virtual Machine page

    1) Networking

    2) Add inbound rule

That's it!

Ziba Leah
  • 2,484
  • 7
  • 41
  • 60