I have having issue connecting my bitcoincore from an external ip address (Hostgator to be specific). The Bitcoin core is hosted on Google Compute Engine (Windows Sever 2012).
Here is what i have done
Bitcoin Core Config File
deprecatedrpc=1 dbcache=1000 txindex=1 server=1 rpcuser=myusername rpcpassword=mypassword rpcport=8332 rpcallowip = 22.214.171.124
N.B 126.96.36.199 is the dedicated server IP on Hostgator. N.B 188.8.131.52 is the Ip for my VM on Google Compute Engine
I also disabled firewall totally on the windows machine
I specified compute engine firewall rule to allow access for TCP port 8332 and 8333
I contacted hostgator, they told me port 8332 is enabled for outgoing connections but not for incoming on shared server
https://www.yougetsignal.com/tools/open-ports/ shows the 2 port as opened
But still, i can't get JSONRPC to talk to the bitcoincore. What i am getting is "Could't connect to host" . When i make a call to with the EasyBitcoin Library.
<?php include('easybitcoin.php'); $bitcoin = new Bitcoin('myusername','mypassword','184.108.40.206','8332'); $info = $bitcoin->getinfo(); print_r($info); ?>
What am i missing