Request failed with status code 404 #101

Closed
opened 2018-11-20 18:48:06 +00:00 by steffanhalv · 1 comment
steffanhalv commented 2018-11-20 18:48:06 +00:00 (Migrated from github.com)

Hi, I also have a problem with server respoding with 404.

I saw other had the same problem, but They didn't really come with an answer before issue was closed.

localtunnel:server making new client with id empty-otter-68 +2s

Then visiting given url gives:

skjermbilde 2018-11-20 kl 19 42 02

Status returns: (http://siglar.no:1234/api/status)

{"tunnels":0,"mem":{"rss":47595520,"heapTotal":22364160,"heapUsed":14637144,"external":237704}}```

**Server was runned by:**

```bash
node -r esm bin/server.js --port 1234

Server is Debian Stretch 9 on Google Compute Engine.

*.siglar.com is returned setup correctly by dns also.

What could be wrong?

Hi, I also have a problem with server respoding with 404. I saw other had the same problem, but They didn't really come with an answer before issue was closed. `localtunnel:server making new client with id empty-otter-68 +2s ` **Then visiting given url gives:** ![skjermbilde 2018-11-20 kl 19 42 02](https://user-images.githubusercontent.com/4593184/48795177-60845880-ecfc-11e8-880d-d2ae04d2bda3.png) **Status returns:** (http://siglar.no:1234/api/status) ```json {"tunnels":0,"mem":{"rss":47595520,"heapTotal":22364160,"heapUsed":14637144,"external":237704}}``` **Server was runned by:** ```bash node -r esm bin/server.js --port 1234 ``` Server is Debian Stretch 9 on Google Compute Engine. *.siglar.com is returned setup correctly by dns also. What could be wrong?
steffanhalv commented 2018-11-20 20:12:12 +00:00 (Migrated from github.com)

Ok, problem is that Google Compute Engine blocks all ports & TunnelAgent.js is listening on random ports for tcp connection.

In listen () function do this:

// Replace this
server.listen(() => {

// With this
// tcpPort = an open port of your choice
server.listen(tcpPort, () => {

This will only allow one connection at a time, but you can open more ports if you want more connections :)

Or you can also open all ports:

https://cloud.google.com/vpc/docs/using-firewalls

Ok, problem is that Google Compute Engine blocks all ports & TunnelAgent.js is listening on random ports for tcp connection. In listen () function do this: ```js // Replace this server.listen(() => { // With this // tcpPort = an open port of your choice server.listen(tcpPort, () => { ``` This will only allow one connection at a time, but you can open more ports if you want more connections :) Or you can also open all ports: https://cloud.google.com/vpc/docs/using-firewalls
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#101