1

According to this it's possible to have incoming connections to Bitcoin client by forwarding port 8333 on the router. I was wondering if there is some specific port range Bitcoin Core uses for making outgoing connections which could be used as a triggering rule? This way when the client is not running, port would be closed, plus it could be used by different machines behind the router without configuration changes (I know I could forward different ports to different machines and then change the incoming port in client configs)

EDIT:

@NateEldredge is right.

My current setup is as follow:

Rule name: Bitcoin Triggered range: 8333-8333 Forwarded range: 8333-8333

If Bitcoin Core is running the port is open (according to http://www.canyouseeme.org/). If it's closed the port is closed too.

The only catch is it won't work if all 8 outgoing connections will use non default port but it shouldn't happen too often if ever.

2
  • 1
    You could look for outgoing connections with destination port 8333, if your router supports that. Commented Oct 20, 2015 at 16:13
  • 1
    @NateEldredge My router doesn't specify if it expects source or destination port as triggering port but it seems it's the second case and you are right. Please convert your comment to an answer so I can accept it.
    – MeTTeO
    Commented Oct 20, 2015 at 16:26

1 Answer 1

3

Bitcoin Core doesn't seem to have an option to specify the source port for outgoing connections, so you probably can't assume anything about the source port.

However, if possible, you could configure your router to look for outgoing connections with destination port 8333, which will probably be the port used by most peers.

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.