tryethernal / ethernal

Ethernal is a block explorer for EVM-based chains. In a few seconds, spin up a fully-featured explorer for your L1/L2 rollup/testnet. Compatible with Optimism, ZK, Anvil, Hardhat, Geth...
https://www.tryethernal.com
Other
206 stars 49 forks source link

Cannot connect to public IP #195

Closed srinjoychakravarty closed 1 year ago

srinjoychakravarty commented 1 year ago

When creating a workspace, I cannot put in a remote public IP address (EC2) as the RPC Server.

Screenshot 2022-10-03 at 4 41 53 PM

antoinedc commented 1 year ago

Hi, can you try with adding https:// in front?

srinjoychakravarty commented 1 year ago

@antoinedc

antoinedc commented 1 year ago

I tested your IP and it didn't work with https because there is an issue with the certificate. You can check by running this:

curl -k --location --request POST https://44.238.178.98:8545 -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'

Now, for http, it actually works but you need to change a setting in your browser. Unfortunately for Ethernal (but I guess there is a good reason for that) browsers do not allow loading insecure (http or ws) content on a https page. In order to change that you can follow instructions here: https://experienceleague.adobe.com/docs/target/using/experiences/vec/troubleshoot-composer/mixed-content.html

Once this is done, you should be able to connect your ip over http.