lets say i am making a json-rpc call with the following connection :

 $connect = new jsonRPCClient('http://user:password@ipaddress:9332');

does outbound port 9332 of the sender need to be open as well as that the 9332 inbound port of receiving machine?

if not then which outbound ports need to be open?

the reason i am asking is because i am connecting via json-rpc to a VPS that hosts bitcoind with a simulated webserver on my PC (usbwebserver) and it is successful , but when i try to do the identical thing from a shared web-server (hosted by a company) i get an error: Unable to connect and they only have specific outbound ports open.

thanks for the help :)

1 Answer 1


The RPC server doesn't care what source port the request comes from, and it doesn't need to make any extra connections back to the client on that port or any other.

However, a possible cause for your trouble is that the shared webserver's firewall blocks outgoing traffic with a destination port that is not on their whitelist. (That may be what is meant by "having specific outbound ports open".)

The fix would be to change the RPC server configuration to listen on some other port which is allowed as a destination port by the shared webserver. The most obvious choice would be port 80, if the RPC server machine isn't also running an HTTP server. Otherwise, you can try various commonly used ports to find one that is allowed by the firewall and not already in use.

  • contacted my host and they opened access for that port which solved it , thanks for the help :) Sep 11, 2014 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.