Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
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?
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.
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.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments