Download Use on Web (odysee.com) Community ⌄ lbry.org Meet, chat, and party in the heart of the LBRY community. YouTube Partner Program Sync your content instantly and start earning Frequently Asked Questions Got questions? We probably have answers! Blockchain Explorer Look up transactions and claims on the LBRY blockchain Company ⌄ @lbry on LBRY Everything about LBRY, from LBRY, on LBRY Company News The latest from the LBRY team The Team Meet the people building LBRY and why they're doing it Roadmap The next steps in our journey Contact Have a question or want to connect with the LBRY, Inc. team? Credit Reports Quarterly reports on LBRY's blockchain assets Developers ⌄ LBRY.tech Find a technical overview, specification, APIs, and more Follow @lbrytech on LBRY From the devs, for the devs. The Spec Read a formal technical description of how LBRY works GitHub All LBRY code is public and open-source Contributor's Guide Become a contributor to the LBRY project Search Try LBRY Menu Try LBRY

How to change default daemon peer port?

« Back to FAQ

If you see the error message couldn't bind to port 3333, it is likely that another process is already bound to that port. You will need to change the port before starting the daemon. The port number should not matter as long as it is available and not blocked by your ISP.

The most user friendly way to change the port permanently is to append the below line to the daemon_settings.yml in the lbrynet directory. If it doesn't exist, create a new file named daemon_settings.yml and append:

tcp_port: 3334

Sample daemon_settings.yml (may vary by OS):

download_directory: c:\users\lbry
tcp_port: 3334

Other methods

To change the port once during runtime, set the LBRY_PEER_PORT env variable. Here's one way to do this:

LBRY_TCP_PORT=3334 ./lbrynet-daemon

Once the daemon is running, you can change the port permanently by using the following api call

curl -d'{"method": "settings_set", "params": {"key": "tcp_port", "value": <port-num>}}' http://localhost:5279/

or via cli command

lbrynet settings set tcp_port 3334

See a mistake? Edit this page on GitHub.