Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use generate link for HTTP server

Using the above link returns results. (

However, generating the link using the following method and then accessing the link does not return results.
PS: Using to generate a link may be the simplest method.
ssh -R 80:localhost:4455
What other local HTTP server software did you test with serveo? How does it work?
Quote:What other local HTTP server software did you test with serveo?

Using the built-in OpenSSL component in the Windows system.

The official website provides the following description


Serveo is an excellent alternative to ngrok. Serveo was inspired by ngrok and attempts to serve many of the same purposes. The primary advantage of Serveo over ngrok is the use of your existing SSH client, so there's no client application to install.
Other slight advantages include preservation of URLs across reconnect for free (ngrok allows this only for paid accounts) and in-terminal request inspection and replay (ngrok uses a web interface).

erverUsing Serveo instead of OpenSSH frees you from having to configure and maintain a server. It also handles HTTPS and subdomain generation, two features that complicate a typical SSH port-forwarding setup.

My operating steps are as follows:

It worked! I forgot to add the function at the end of the link.

This is the simplest method I found, and it supports HTTPS as well.

I believe this method should be added to the help documentation of the HTTP Server class. It's truly exciting!  Big Grin
Existing issues:
1. The system's built-in Openssh component needs to be manually added in the system's Control Panel or using the following PowerShell command:
   Add-WindowsCapability -Online -Name OpenSSH.Client~~~~
2. After executing the command in PowerShell to generate the link, it is temporary, and the command prompt window cannot be closed, otherwise, the link will become invalid.

Resolving them:
Could SSH.NET component be used and executed asynchronously?
Could someone share the code for this functionality? Thank you very much.
It would be great if a switch could be added.
When I enable it, it could use the command (ssh -R 80:localhost:4455 or the SSH.NET component to generate a publicly accessible link in the output panel.  Idea
My web browser can't connect to today.

I don't see problems with ngrok. It gives a free static URL. With it the ngrok agent can run hidden:

Copy      Help

string ngrok = @"C:\Downloads\ngrok.exe";
string cl = "http 4455";, cl); //visible
//, cl, dirEtc: new() { WindowState = ProcessWindowStyle.Hidden }); //hidden
//, cl, flags: RFlags.WaitForExit, dirEtc: new() { WindowState = ProcessWindowStyle.Hidden }); //hidden, wait
//run.console(ngrok, cl); //hidden, wait
Thanks for your help.
The file ngrok.exe is too large, over 28MB, and it requires account registration, which is not very convenient. requires no installation and no registration.

After executing the above code, the CMD window will automatically close.
I used the following command to execute it in CMD, and the error shown in the picture below occurred. 
ngrok.exe http 4455

The project in the link below allows to deploy Serveo on own server, but it requires a Linux system, while my server is a Windows system.
I found an open-source alternative to ngrok and Serveo. It is actively maintained, supports self-hosting, and is compatible with various systems including Windows. However, the documentation lacks detailed deployment instructions for Windows(my server is Windows server 2016).

Forum Jump:

Users browsing this thread: 1 Guest(s)