Is there any thing like ngrok but can open 2 port ?
- User
Is there any thing like ngrok but can open 2 port ?
- Assistant
Is there any thing like ngrok but can open 2 port ?
Yes, there are several tools similar to ngrok that allow you to expose multiple local ports or services to the internet simultaneously. Here are some options you might consider:
Ngrok (Paid Version):
frp (Fast Reverse Proxy):
Description: An open-source, high-performance reverse proxy application that allows you to expose local servers behind a NAT or firewall to the internet. You can expose multiple ports and protocols (TCP, UDP, HTTP, HTTPS).
Features:
Requirements: You need access to a server with a public IP address to run the frp server component.
Use Case: Suitable if you have access to a VPS or cloud server and prefer a self-hosted solution.
Website: GitHub - fatedier/frp
Cloudflare Tunnel (Previously Argo Tunnel):
Description: A service by Cloudflare that lets you securely expose your local web server to the internet without opening any inbound ports. It can handle multiple services.
Features:
Use Case: Great if you want a secure, managed solution without hosting your own tunneling server.
Website: Cloudflare Tunnel
LocalXpose:
Description: A reverse proxy that enables you to expose your local services to the internet. Supports multiple tunnels with custom subdomains.
Features:
Use Case: Good alternative if you're looking for simplicity and ease of use.
Website: LocalXpose
Serveo:
Description: A hosted SSH server that lets you create SSH tunnels without any additional software. You can forward multiple ports by creating multiple SSH tunnels.
Features:
Use Case: Useful if you prefer not to install additional software and are comfortable using SSH commands.
Website: Serveo
Pagekite:
Description: An open-source tunneling solution designed to make local servers part of the public internet. It can forward multiple ports and supports various protocols.
Features:
Use Case: Suitable for those looking for a flexible solution with support for multiple protocols.
Website: Pagekite
LocalTunnel:
Description: Provides a simple way to share a locally running web server. While it's designed for exposing one port, you can run multiple instances to expose multiple ports.
Features:
Use Case: Quick sharing of local web services with minimal setup.
Website: LocalTunnel
Considerations When Choosing a Solution:
Example Using frp:
If you decide to use frp, here's a brief overview of how you could set it up:
Set Up frp Server:
frps.ini file with the desired settings.frps -c frps.ini.Set Up frp Client:
frpc.ini file to specify the local ports you want to expose and the remote ports they should map to.frpc -c frpc.ini.Sample frpc.ini Configuration:
[common]
server_addr = your_server_ip
server_port = 7000
[web1]
type = http
local_port = 8080
custom_domains = example1.com
[web2]
type = http
local_port = 9090
custom_domains = example2.com
With this setup, you're exposing two local web services on ports 8080 and 9090 to the internet using custom domains.
Final Thoughts:
Choose the tool that best fits your technical comfort level and requirements. If you're looking for a quick and easy solution without managing servers, opting for a paid ngrok plan or Cloudflare Tunnel might be the best route. If you prefer a self-hosted and customizable solution, frp or Pagekite could be more suitable.
Not yet included in a published release.