Replies: 11 comments
-
You can install and use Expose client(on your local machine) as follows: Installing Expose client
composer global require beyondcode/expose
On Linux system, PATH=$PATH:~/.config/composer/vendor/bin On macOS, PATH=$PATH:~/.composer/vendor/bin
Using Expose client
expose share http://127.0.0.1:<local_port> --subdomain=rest-skeleton
expose share http://127.0.0.1:<local_port> --subdomain=rest-skeleton --auth="admin:test123456" |
Beta Was this translation helpful? Give feedback.
-
@cpxPratik thank you so much! now, how does one share a TCP port? I tried: It does not work, as per #123 (comment) |
Beta Was this translation helpful? Give feedback.
-
TCP port sharing is only available in the master branch and will land in version 2.x. You can already set up your own server to use this though |
Beta Was this translation helpful? Give feedback.
-
Go on... That is my goal to use my own server. Do you have instructions on how to do TCP port sharing on my own server? |
Beta Was this translation helpful? Give feedback.
-
There is a documentation available that explain how to host your own server. You may want to check this out: |
Beta Was this translation helpful? Give feedback.
-
Right, I've read that. I'm talking about instructions on how to share TCP ports specifically. |
Beta Was this translation helpful? Give feedback.
-
Friendly bump in case anyone’s figured out how to share TCP ports yet? |
Beta Was this translation helpful? Give feedback.
-
Yeah this is a bit frustrating. You guys are so innovative and productive, but you need to hire someone to write documentation. I created a Forge server, added my domain, installed SSL. I downloaded the package and then created a repo for it, then imported it as an app into my domain on Forge. I adjusted the config to represent the correct domain and port 443, I added your configuration for Nginx to map / to 127.0.0.1:8080. I opened port 8080 just in case it was needed. I created a daemon to run I visit the site and a see an SSL encrypted homepage. So far so good. Now, locally I installed the package globally: composer require -g beyondcode/expose I publish the config and edit it accordingly, adding the domain of my server and port 443 And then .... when I run It just hangs forever. So .... I think ... maybe I need to start a local server for it to work? So I run: expose serve mydomain.com Expose reports that it's running on port 8080 ... which is NOT what's in the config, but either way. Still, trying to share a site produces nothing at all, just a hanging process. Meanwhile ... I have a server burning that does nothing. What's the hold up on these issues? |
Beta Was this translation helpful? Give feedback.
-
fwiw, here is a fully working example that I used to test using expose to tunnel an HLS Proxy server. I didn't see any need to use Docker or composer. The expose repo includes a PHAR that only needs a PHP binary on PATH to run.
|
Beta Was this translation helpful? Give feedback.
-
It sounds like at least some of you have been able to get this working?
I would like to create my own expose server to tunnel a TCP Port on a local computer just like nGrok can do.
I created a DO Docker droplet.
Installed expose
Not sure what to do next?
What app do I download to the client? With nGrok there's a Windows/Mac/Linux app for the local computer that's going to share it's port.
What command(s) do I run on my server?
I've gone through the documentation many times and I'm missing a few key steps...
Thanks for taking pity on me, anyone kind enough to help! :-)
Beta Was this translation helpful? Give feedback.
All reactions