I was reading this post on reddit where a user got all her ether hacked because she had an open RCP port when deploying a contract.

I just used network utility to run a scan and it turns out I have an open TCP port. Is there any risk involved? I don't even know what a TCP port is for the record.

  • Opening a port is always a threat you can use firewalls to restrict the connections or use the --rpccrossdomain flag to limit the access if youre using geth
    – niksmac
    Commented Feb 29, 2016 at 5:08
  • @NikhilM a bit of a warning: rpccrossdomain only tells your browser how to set limits, these aren't any sort of firewall limitations.
    – linagee
    Commented Feb 29, 2016 at 6:18

1 Answer 1


No. You have open TCP ports for things like the internet. ie:

80 is the TCP port for all HTTP data

443 is ssl

21 is ftp

22 is sftp

As long as the open port is not the the geth rpc port, then you are fine. You shouldn't arbitrarily open TCP ports, but you likely have a TCP port open for a natural reason.

Your Answer

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

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