key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.53k stars 228 forks source link

how to expose 9993 port to acces from outside? #32

Closed ghost closed 4 years ago

ghost commented 4 years ago

i try to write in .env ZT_ADDR=0.0.0.0:9995 but not working, other parameters like HTTP_PORT=3456 or HTTPS_PORT=3443 work well. Screenshot_20200429_000743 i cannot acces it from outside, because port not accept requests from outside, only from container

key-networks commented 4 years ago

IIRC, ZT_ADDR is to match any change you make to the port that zerotier-one is running on, i.e. you would have to change the configuration of zerotier-one to use that port. Also, the local address (127.0.0.1) is what you would typically specify, not 0.0.0.0 .

ghost commented 4 years ago

how i can configure zerotier-one to accept connections from outside? where is the configuration file that i can make changes? p.s ZT_ADDR= is option to set where connect to zerotier-one, i restored it back... best regards

key-networks commented 4 years ago

Are you using https://github.com/key-networks/ztncui-containerized ?

flantel commented 4 years ago

@connected201 I think you need to run the container using HOST networking, so that zt listens on 9993 on the actual host interface, not just the container's pseudo interface.

ghost commented 4 years ago

i resolved my case, best regards

Fastidious commented 4 years ago

@connected201 while glad you resolved your case, not explaining or providing details on what was done to correct it (even if it was user's error)--which could be very important to help others with a similar problem--is wrong.

Could you please let us know how you resolved your case? Thank you.

ghost commented 4 years ago

https://github.com/key-networks/ztncui-containerized/issues/13