I cant seem to find any good solution for my issue so I hope this question will be answered once and for all.
First, I understand that by hosting my html files online directly from my PC means to loosen up my PC security and that can be dangerous. But I am fine with this as this is just my testing laptop. Nothing important or whatsoever in here.
So lets start with the main issue. I have port forwarded the port 3306, 80, 8080, and 2727(which I plan to switch the apache port to this)
Tested port online and result is open.
In my apache httpd.conf file, here is what I have setup..
ServerName xxx.xxx.x.xx:2727 (which is my private ip)
<Directory "c:/wamp/www/"> Options FollowSymLinks Indexes Allow from all Order Allow,Deny AllowOverride All Require all granted </Directory>
I am now able to access my index.html in the wamp www directory by typing 127.0.0.1:2727 in the url (same goes to /phpmyadmin)
What should I do next to make sure my public ip can access the index.html?
Example, when I enter my public ip like this 22.214.171.124:2727, it just shows connection timed out.
Extra info if this helps :
- My WAMP is orange.
- I have the MYSQL Community Edition in my PC.
- My WAMP version is 2.5
- Apache version is 2.4.9
- MySQL version is 5.6.17
- Apache service test port 80 is not used.
I apologize in advance if my question seems difficult to understand but I will try my best to provide as much information as per request.