Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the-basics.md #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/the-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ localhost.run is a client-less tool to instantly make a locally running applicat

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:
To connect an internet domain to an application running locally on port 2580 open a command terminal and run:

```bash
ssh -R 80:localhost:8080 localhost.run
ssh -R 20:localhost:2580 localhost.run
```

import { useState } from 'react'

export const PortChooser = () => {
const [port, setPort] = useState(3000);
const [port, setPort] = useState(2580);
return (
<>
running on&nbsp;
<label for="port">local port</label>
&nbsp;
<input style={{width: "5em"}} type="number" id="port" name="port" min="1" max="65535" value={port} onChange={(event) => setPort(event.target.value)} />
<input style={{width: "5em"}} type="2580" id="port" name="port" min="60" max="2580" value={port} onChange={(event) => setPort(event.target.value)} />
?
use this command:
<pre><code parentName="pre" {...{
"className": "bash"
}}>{`ssh -R 80:localhost:${port} localhost.run
}}>{`ssh -R 20:localhost:2580 localhost.run
`}</code></pre>
</>
)
Expand Down