How to host website on my pc [closed]

-1

I'm creating an application in php with using xampp. I would like to know how to turn my PC into a hosting server, so that I can access my application from anywhere. I have tried to access my router's admin (D-link Dir-608) I created a "virtual server", however, without success, an error occurs when trying to access the external ip. Does anyone have any teaching tips or tutorials? Thank you.

    
asked by anonymous 03.06.2017 / 23:21

1 answer

1

Use the No-IP software . Make the registration on the website, choose an external host name, example my-home.sytes.net , install the software on your computer and access the software with your credentials.

Once accessed and logged into the software, you will need to configure your router to route certain traffic to your machine. In the case of a hosting, the important ports would be 80 for access via HTTP , and 443 for access via HTTPS >. I think just setting 80 is enough for you.

To perform this configuration you will need the IP of your machine, because what will be done is to redirect all the traffic that reaches port 80 of your router to your machine .

To get your IP, open the Command Prompt and type, ipconfig . Your ip should look something like 192.168.x.x, 10.x.x.x or 172.16.x.x.

Access the router and look for port forwarding or English port forward configuration. You must enter in this configuration the IP address of your machine as well as the input and output port. Both the gateway and the gateway will be port 80 and the IP address of your machine.

With everything set up correctly, you should configure xampp to respond to the site address you registered in No-ip.

I hope it's useful and can make your setup.

    
04.06.2017 / 00:46