For testing purposes, I need to connect from a web page in my shared hosting account (on the public internet) to my json rpc server which is running on my laptop . So bitcoind is running on my laptop, which is behind my router, and I have a shared web hosting account with easybitcoin.php running on it.
Let's say my router's public IP is 22.214.171.124, and the web server (where easybitcoin.php lives)'s IP address is 126.96.36.199, and my laptop LAN address is 192.168.1.99
The error I get is
Failed to connect to 188.8.131.52 port 8332: Connection refused
server=1 rpcallowip=184.108.40.206 rpcport=8332
Router Port Forwarding
Down. I checked it at the router and on the laptop (where there is an exception for bitcoind).
Laptop is in the router's DMZ.
Online Port Scanner Check (looks good)
Result: 220.127.116.11 is listening on port 8332
Going to http://192.168.1.99:8332/ from inside the LAN (looks good)
JSONRPC server handles only POST requests
Going to http://18.104.22.168:8332/ from inside the LAN
A connection attempt timed out.
Going to http://22.214.171.124:8332/ from the public internet (I made an rpcallowip=IP of the testing website)
403 Response (0 characters)
Going to http://126.96.36.199:8330/ from the public internet (bogus port)
Connection timed out.
Once I get this working I will go back and tighten everything back up. But I need to get it working first. I must be missing something.