1

The default port for the Lightning Network is 9735. This is the case not only for nodes on MAINNET, but also for nodes on TESTNET.

Why is that? What's the purpose of this? Wouldn't it make more sense to use different ports for the different networks?

Particularly if you run a MAINNET node and a TESTNET node on the same machine, how would the host know which incoming traffic is intended for which node?

1

2 Answers 2

2

I don't know what the design decisions were that led to this, or their rationale, but:

Particularly if you run a MAINNET node and a TESTNET node on the same machine, how would the host know which incoming traffic is intended for which node?

It's not possible to run two services on the same IP with the same port. If you want to run both a mainnet and a testnet node, at least one of them will need to run on a non-default port. Apart from needing configuration to change the port on one of them, this shouldn't be a big deal.

0

I don't know why was made in this manner but if you wanna run both nodes (mainnet & testnet) in this particular port you could use tor hidden services.

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.