I’ve my dApp running on AWS and Geth running locally. How am I supposed to connect my hosted dApp with the Geth?
I’m connecting my web3(using web3.py) using my computer’s(Windows OS) IP address.
web3 = Web3(Web3.HTTPProvider("http://xx.xx.xx.xx:8545"))
Port 8545 has been also opened via Firewall port.
Running my Geth node using
geth --datadir ./Doc-Nodes --networkid 4780 --rpc --rpcapi "db,personal,eth,net,web3,debug,admin" --rpccorsdomain="*" --rpcaddr="0.0.0.0" --rpcport 8545 --allow-insecure-unlock console
But I’m always getting the error while sending the request to dApp.
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host=’xx.xx.xx.xx’, port=8545): Max retries exceeded with url: / (Caused by ConnectTimeoutError(urllib3.connection.HTTPConnection object at)
How am I supposed to connect both? I’m confused about what IP should be provided in the web3 connection as well as rpc address.
Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.