Click here to Skip to main content
16,022,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,
i am trying to run the command
ssh -R 80:localhost:3000 localhost.run


but getting the error connection timeout.

How do I make available my local web service to the internet?

Note:
1. I have less knowledge regarding network & security
2. trying to create a mobile application which will get data from my local database using internet, so created a web service

What I have tried:

1. openSSH server and configure it
2. make inbound and outbound rules for port 22
3. generate SSH key successfully.
4. turned off firewall
Posted
Comments
Chris Copeland 23-Aug-24 9:03am    
Besides the questionable SSH reverse proxy (something like Apache would be good for that), how exactly are you trying to access this? If you want your server to be exposed to the internet then you're going to want to setup a server somewhere, probably a cloud-based on like EC2 in AWS. Is this running on a Windows or Linux machine? Where is this web service being hosted?

If you're using Linux in AWS/Azure then I'd recommend instead hosting your web service and create a reverse proxy using apache2, where you can setup your SSL certificates. You shouldn't be using SSH for a HTTP web service.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900