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.
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.
- Bash>>: Ensure you have a Bash shell available.
- SSH>>: The script uses SSH to connect.
- Install>>:sudo apt install openssh-server
- Automatically detects
http://
orhttps://
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.
-
Clone the repository:
git clone https://github.com/GET-UNKNOWN-ERR0R/expose-local-with-shellscript.git
cd expose-local-with-shellscript
-
Make the script executable:
chmod +x expose-localhost.sh
-
Run the script:
./expose-localhost.sh
- 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. ,