Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to change daemon ports #879

Merged
merged 2 commits into from
Mar 7, 2015
Merged

document how to change daemon ports #879

merged 2 commits into from
Mar 7, 2015

Conversation

anarcat
Copy link
Contributor

@anarcat anarcat commented Mar 7, 2015

this more clearly explains that the daemon is listening on the network. it also hints as to how to change the listening ports. this is also related to #874

this more clearly explains that the daemon is listening on the network. it also hints as to how to change the listening ports. this is also related to #874

ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/8082

Make sure to restart the daemon after.`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Maybe also add:

By default, the gateway is only accessible locally. To expose it to other computers
in the network, use 0.0.0.0 as the ip address:

   ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080

The API address can be changed the same way:

   ipfs config Addresses.API /ip4/0.0.0.0/tcp/5002

Be careful if you expose the API. It is a security risk, as anyone could use control 
your node remotely. If you need to control the node remotely, make sure to protect
the port as you would other services or database (firewall, authenticated proxy, etc).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, somewhat.

i took @jbenet's suggestion, but reorganised it a bit to *not* suggest what is actually warned against later. :)
@jbenet
Copy link
Member

jbenet commented Mar 7, 2015

LGTM!, thanks!

jbenet added a commit that referenced this pull request Mar 7, 2015
document how to change daemon ports
@jbenet jbenet merged commit 5db973a into ipfs:master Mar 7, 2015
@anarcat anarcat deleted the patch-1 branch March 7, 2015 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants