Bitcoin Forum

Other => Beginners & Help => Topic started by: IamAGentleman on January 18, 2015, 12:07:28 AM



Title: Can't connect to BTC server JSON
Post by: IamAGentleman on January 18, 2015, 12:07:28 AM
Okay, so my btc server is set up on my localmachine, I am trying to connect from my website, but it throws an error:


Warning: fopen(http://...@removedipforthispost/): failed to open stream: Connection refused in /application/libs/jsonRPCClient.php on line 132

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect


My port forwarding my my router is set the the computer it's on and port 8332. And on my bitcoin machine the conf file is allow all ips server=1, port 8332, username and password. yet I am still getting that error. It works on my other pc on the same wireless, but I check through a proxy and the login page is showing so I don't think it's blocking?


https://i.imgur.com/OdRYF7P.png


Title: Re: Can't connect to BTC server JSON
Post by: Anatidaephobia on January 18, 2015, 12:26:31 AM
What do you mean by your bitcoin server? your bitcoin qt client acting as a node? i think you need to open some ports for that to work.


Title: Re: Can't connect to BTC server JSON
Post by: IamAGentleman on January 18, 2015, 12:48:26 AM
What do you mean by your bitcoin server? your bitcoin qt client acting as a node? i think you need to open some ports for that to work.

as a server to connect to via json rpc I'm sure I've opened ports as the pic shows