theunraveler / taskwarrior-web

A web interface for the Taskwarrior todo application. Because being a neckbeard is only fun sometimes.
http://theunraveler.github.com/taskwarrior-web
MIT License
532 stars 60 forks source link

How to open task-web to remote local machines in the same network? #117

Closed hakanu closed 6 years ago

hakanu commented 6 years ago

Hi there,

Great tool, I have been using a lot in my desktop. However, I'd like to reach to task-web from my other LAN machines. For example I run task-web on http://192.168.0.12:5678/ It's all good in the same machine. But I can not open the same address on the same network on another device. I tried running task-web with different flags.

Do you know how I can do that?

Thanks.

Zebradil commented 6 years ago

Which exactly command do you use to run task-web?

hakanu commented 6 years ago

I tried different flag combos of task-web however it didn't make much difference. This is what i use currently: task-web --host 192.168.0.12 --env production -F -d

Zebradil commented 6 years ago

I'm not able to test it in LAN, but I'm sure you need to use 0.0.0.0. In this case task-web will accept connections from any IPs

hakanu commented 6 years ago

No luck there. I have retried that doesn't work. Ultimate goal is remotely seeing task-web from outside network via port forwarding. Fw rules are set, my python servers are just able to work remotely on WAN and LAN but task-web is not. Feel like it's a webrick issue maybe?

Zebradil commented 6 years ago

I did it in the past. Task-web was running on a laptop and was accessible from phone in the same LAN. I'll try it tonight.

hakanu commented 6 years ago

Thanks looking forward to it!

hakanu commented 6 years ago

any update here?

Zebradil commented 6 years ago

Sorry, I was overwhelmed last days. So, for me it works.

  1. Didn't have taskwarrior-web installed, so run gem install taskwarrior-web.
  2. On my laptop I ran task-web without any additional flags.
  3. Find my laptop's IP in LAN: it is 192.168.0.150.
  4. On my phone go to 192.168.0.150:5678.
  5. Done

Maybe some firewall restrictions on your host machine?

Zebradil commented 6 years ago

I'm on Mac by the way, firewall is disabled in system settings.

hakanu commented 6 years ago

Thanks for confirming that it works out of box.

This did the trick. I'm using ubuntu subsystem in windows. https://www.nextofwindows.com/allow-server-running-inside-wsl-to-be-accessible-outside-windows-10-host

Now I'm able to see my tasks, yay!