I am trying to access a remote google compute engine where I have the ipfs daemon running, but I get port 5001 connection refused. I have stumbled around setting firewall rules on the server and on my laptop, but without success.
I would appreciate any help.
Here is my last attempt:
C:\Users\joe>gcloud compute firewall-rules list
NAME NETWORK DIRECTION PRIORITY ALLOW DENY DISABLED default-allow-http default INGRESS 1000 tcp:80 False default-allow-https default INGRESS 1000 tcp:443 False default-allow-icmp default INGRESS 65534 icmp False default-allow-internal default INGRESS 65534 tcp:0-65535,udp:0-65535,icmp False default-allow-rdp default INGRESS 65534 tcp:3389 False default-allow-ssh default INGRESS 65534 tcp:22 False ipfs default INGRESS 1000 tcp:5001 False ipfs4001 default INGRESS 1000 tcp:4001 False ipfs4002 default INGRESS 1000 udp:4002 False ipfs8080 default INGRESS 1000 tcp:8080 False ipfs8081 default INGRESS 1000 tcp:8081 FalseTo show all fields of the firewall, please show in JSON format: --format=json
To show all fields in table format, please see the examples in --help.
C:\Users\joe>curl http://35.196.228.208:5001/api/v0/swarm/peers
curl: (7) Failed to connect to 35.196.228.208 port 5001: Connection refused