From 61d39c1920f8a9a39ff0a974fffa9ed3509dd91d Mon Sep 17 00:00:00 2001 From: gorbachikkostya-jpg Date: Sat, 27 Sep 2025 20:44:16 +0300 Subject: [PATCH] Update the-basics.md --- docs/the-basics.md | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/docs/the-basics.md b/docs/the-basics.md index 714a46e..65c7ffa 100644 --- a/docs/the-basics.md +++ b/docs/the-basics.md @@ -1,40 +1,16 @@ ---- -id: the-basics -title: The Basics -sidebar_label: The Basics -slug: / ---- - -## Put a locally running HTTP, HTTPS or TLS app on the internet - -localhost.run is a client-less tool to instantly make a locally running application available on an internet accessible URL. - -All major operating systems already have SSH installed, and localhost.run uses SSH as a client, so no download is necessary to use the service and no account setup is needed for free domains. - -To connect an internet domain to an application running locally on port 8080 open a command terminal and run: - -```bash -ssh -R 80:localhost:8080 localhost.run -``` - -import { useState } from 'react' - export const PortChooser = () => { - const [port, setPort] = useState(3000); + const [port, setPort] = useState(25565); return ( <> running on  - +   setPort(event.target.value)} /> ? use this command: -
{`ssh -R 80:localhost:${port} localhost.run
+      
{`ssh -R 25565:localhost:${port} localhost.run
 `}
) }; -