Polymer renders rejection of external connections
I can connect to my server on port 8081 with no problem: if I do nc -l 8081
on my server and nc my.host.name 8081
on my local machine, I can send and receive everything fine. But if I do polymer serve
on my server, doing nc my.host.name 8081
on my local outputs immediately and it nc localhost 8081
works just fine and I can see that my index.html helped me if I fake the HTTP request. nc my.host.name 8081
also doesn't work on the server.
What am I doing wrong? Why does polymer only serve to listen for internal requests?
source to share
Thus, it appears polymer serve
to only respond to queries made localhost
by default. There seems to be a difference between localhost: 8081 and port 8081 that the rest of the world sees.
You can do polymer serve -H [external ip]
where you get the external ip from ifconfig
where it says inet addr:
. Alternatively, I seem to be able to do polymer serve -H `hostname`
, although I'm not 100% sure what the general solution is.
source to share