From db22278a5099e2b10c5596fb1c31579b6dc4ccd2 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 14 Aug 2019 09:47:29 -0400 Subject: [PATCH] update config value --- content/faq/how-to-change-port.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/faq/how-to-change-port.md b/content/faq/how-to-change-port.md index 49bc9550..97988e37 100644 --- a/content/faq/how-to-change-port.md +++ b/content/faq/how-to-change-port.md @@ -7,24 +7,24 @@ If you see the error message `couldn't bind to port 3333`, it is likely that ano 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](/faq/lbry-directories). If it doesn't exist, create a new file named `daemon_settings.yml` and append: - peer_port: 3334 + tcp_port: 3334 Sample daemon_settings.yml (may vary by OS): - {download_directory: c:\users\lbry, - peer_port: 3334} + 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_PEER_PORT=3334 ./lbrynet-daemon + LBRY_TCP_PORT=3334 ./lbrynet-daemon Once the daemon is running, you can change the port permanently by using the following [api](/api) call - curl 'http://localhost:5279' --data '{"method":"settings_set", "params":{"peer_port":}}' + curl 'http://localhost:5279' --data '{"method":"settings_set", "params":{"tcp_port":}}' or via cli command - lbrynet settings_set --peer_port 3334 + lbrynet settings_set --tcp_port 3334