https://github.com/get-unknown-err0r/expose-local-with-shellscript
This repository contains a simple shell script that will expose your localhost server to the INTERNET. Additionally, it includes a script to start a shell server for serving the files locally. We used serveo to do this stuff.
https://github.com/get-unknown-err0r/expose-local-with-shellscript
arpit-prajapati bash expose-local-with-shellscript expose-localhost get-unknown-err0r github linux-shell serveo shell-script
Last synced: 8 days ago
JSON representation
This repository contains a simple shell script that will expose your localhost server to the INTERNET. Additionally, it includes a script to start a shell server for serving the files locally. We used serveo to do this stuff.
- Host: GitHub
- URL: https://github.com/get-unknown-err0r/expose-local-with-shellscript
- Owner: GET-UNKNOWN-ERR0R
- License: mit
- Created: 2024-12-29T13:13:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-29T13:49:01.000Z (over 1 year ago)
- Last Synced: 2025-02-24T10:48:19.978Z (over 1 year ago)
- Topics: arpit-prajapati, bash, expose-local-with-shellscript, expose-localhost, get-unknown-err0r, github, linux-shell, serveo, shell-script
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Expose Local or Remote Server
This repository contains a simple shell script that will expose your localhost server to the INTERNET. Additionally, it includes a script to start a shell server for serving the files locally.
# OUTPUT:

# Expose Local or Remote Server by tunneling
This Bash script allows you to expose a local or remote web server to the internet. The script prompts you to input a URL and then sets up a tunnel to make the server accessible publicly.
## Prerequisites
- Bash>>: Ensure you have a Bash shell available.
- SSH>>: The script uses SSH to connect.
- Install>>:sudo apt install openssh-server
## Features
- Automatically detects `http://` or `https://` links.
- Exposes services on default ports (8080 for HTTP and 8443 for HTTPS).
- Option to provide a custom port number.
- Supports both localhost and remote server services.
- SSH-based tunneling to Serveo.
## How to Use
1. Clone the repository:
```sh
git clone https://github.com/GET-UNKNOWN-ERR0R/expose-local-with-shellscript.git
```
```sh
cd expose-local-with-shellscript
```
2. Make the script executable:
```sh
chmod +x expose-localhost.sh
```
3. Run the script:
```sh
./expose-localhost.sh
```
## Notes
- **Security Consideration**: Exposing a server to the internet can be a security risk. Ensure your server is secure and only expose it when necessary.
- **Availability**: The script relies on tunneling , which may be unavailable at times. Consider alternatives like other tunneling platform,if it does not meet your needs.
,