access to tw5 on node.js from other computer fails

340 views
Skip to first unread message

StephanF

unread,
Jul 7, 2017, 8:12:12 PM7/7/17
to TiddlyWiki
Hi everyone
- dual boot laptop running the ubuntu side
- internet connection is via comcast personal (not business) dynamic ip, netgear router, wifi, with port forwarding enabled to the laptop's internal ip
- sample node.js version wiki created and running, works just fine via localhost on the same machine.
- fails to load from a different machine (tablet connected to same wifi router, smartphone via cell network) directed to the router's external ip number. Need this behavior to be able to update the wiki from any machine anywhere on the web (assuming I leave my laptop at home running tiddlywiki --server)
- attempts to use any combination (with appropriate changes to port forwarding settings on the router) of the port and/or host (blank or set to router's external ip) parameters of the --server command generate an error (EADDRNOTAVAIL) so the server fails to start.
- other simple server code running on node.js (hello World!) works just fine from tablet (same router) or phone (different provider, etc)

what am I missing?

Thanks in advance!
Stephan

Arlen Beiler

unread,
Jul 7, 2017, 8:21:49 PM7/7/17
to TiddlyWiki
You need to set the host parameter. I believe it is 127.0.0.1 by default. This means it will only listen on localhost. I normally set it to 0.0.0.0 to listen on all available IP addresses.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8ff2eb62-4d96-4206-88d6-5e4b75110f90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arlen Beiler

unread,
Jul 7, 2017, 8:31:00 PM7/7/17
to TiddlyWiki
The host parameter tells TiddlyWiki which IP address of the computer that you want to listen on. So if you are connected to a wired network and a separate wireless network, you can specify which IP address you want to listen on and computers can only access it from that IP address. If you set it to 0.0.0.0, it will listen on all available IP addresses on the computer. 

By computer, I am referring to the computer you are run the node tiddlywiki.js command on. 

Hope that helps.

StephanF

unread,
Jul 7, 2017, 8:37:55 PM7/7/17
to TiddlyWiki
Thanks! but....  :(
I tried "", "the external IP for the router", and per your suggestion "0.0.0.0" as host parameters.

  blank and 0.0.0.0 both allow the server to start, but the external browser gets the same error

"[[external IP number]] refuses to connect".

the router's log shows the proper forward from the external device to the laptop's internal ip so the router must be passing the request to the internal ip/port for the laptop.

?
Regards, Stephan

Arlen Beiler

unread,
Jul 7, 2017, 8:49:29 PM7/7/17
to TiddlyWiki
Work in stages. First make sure you can access it from a browser on another device on the same wifi network using the laptop's IP address. Once that is working, then you are most of the way there. After that you would probably need to google for your specific router. You can search SuperUser for the info as well, most likely. Or help forums.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

StephanF

unread,
Jul 7, 2017, 9:11:08 PM7/7/17
to TiddlyWiki
okay, working!
the default port parameter is 8080, instead of 80.
setting the router's port forward from [externalIP:80] to [internalIP:3001, or some other number]
and the --server port parameter to "3001, or some other number" and host to "0.0.0.0"
resolved the issue! wiki now accessable from all devices as desired.

Thanks!
Stephan


On Friday, July 7, 2017 at 5:49:29 PM UTC-7, Arlen Beiler wrote:
Work in stages. First make sure you can access it from a browser on another device on the same wifi network using the laptop's IP address. Once that is working, then you are most of the way there. After that you would probably need to google for your specific router. You can search SuperUser for the info as well, most likely. Or help forums.
On Fri, Jul 7, 2017 at 8:37 PM, StephanF <alle...@gmail.com> wrote:
Thanks! but....  :(
I tried "", "the external IP for the router", and per your suggestion "0.0.0.0" as host parameters.

  blank and 0.0.0.0 both allow the server to start, but the external browser gets the same error

"[[external IP number]] refuses to connect".

the router's log shows the proper forward from the external device to the laptop's internal ip so the router must be passing the request to the internal ip/port for the laptop.

?
Regards, Stephan



On Friday, July 7, 2017 at 5:21:49 PM UTC-7, Arlen Beiler wrote:
You need to set the host parameter. I believe it is 127.0.0.1 by default. This means it will only listen on localhost. I normally set it to 0.0.0.0 to listen on all available IP addresses.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages