3 ms·
I had the same question as we do mostly PHP; I'm guessing it just uses Ruby as the host software. I installed the Gem and was able to acquire a URL but kept ge
by crikli 16y ago
I had the same question as we do mostly PHP; I'm guessing it just uses Ruby as the host software.
I installed the Gem and was able to acquire a URL but kept getting an error:
An error has occurred: {"stack":"Error: socket hang up\n at Socket.<anonymous> (http.js:1271:45)\n at Socket.emit (events.js:64:17)\n at Array.0 (net.js:825:12)\n at EventEmitter._tickCallback (node.js:126:26)","message":"socket hang up"}
- senex 16y agoHey crikli, could you send an email to support@showoff.io with any extra details that seem relevant? We'd love to track this down!
- jimmyjazz14 16y agoYou need to have some server listening on your local machine at whatever port you are creating the tunnel for. If you just wanted to test it out you could start something like "python -m SimpleHTTPServer" and then "show 8000", which will serve files from your local machine at your showoff url (I might recommend running the server in an empty directory).
- crikli 16y agoRight you are; I did that and was able to see a bunch of stuff I'd not want to share over the web. :) Sheesh. Ruby runs over 3000, if you're not running the ruby server on 3000 there's not going to be anything listening. Facepalm.
- jimm 16y agoA pedantic correction: Rails runs its server on port 3000 by default; Ruby is the language Rails was written in.
- geuis 16y agoInstead of giving this error, there needs to be a message that explicitly tells the user what's wrong. Something like: "Woops, you said your server was running on port <port>. Is it?"
- pixeloution 16y agoyou have to leave the 'show' program running or you get that error - leave your terminal window open, don't control-c out of it once you've started it, and it will work fine. I had the same issue :)