How can i host a webpage using XAMPP?
Im gonna use this for the mean time for a project at school and i'm broke to buy a webhost and i don't want to use a freewehost with ads. but is it possible? can i host my webpage using Xampp outside localhost? if i'm gonna leave my computer running then it's fine with me.
some one said that you need to type in your ip from whatsmyip but i tried to replace localhost with my ip but nothing happen. do i need advance configurations or something?
- 1 decade agoBest Answer
Yup. "someone" is right that the IP you get from a service like "whatsmyip" will generally work. You may need to take a few more steps though. It's all about ports the ports, or the openings which data moves through your network.
If you have a router you'll want to make sure that NAT (network address translation), also called port forwarding is set up, so you can be sure your web-traffic is being directed at your server. check out: http://portforward.com/ for fairly comprehensive instructions for a ton of router models. (sorry for the ads)
Generally the ports for web servers are 80 for the generic HTTP traffic and 21 for FTP.
You may want to check out http://dyndns.com or http://noip.com to get a easier to remember domain name attached to your IP. This will work great if your ISP changes your IP without telling you (which most providers do)
Hope this helps!Source(s): 15+ years of IT experience and a college educator.
- Anonymous5 years ago
In response to your question, How can i host a webpage using XAMPP?, I can say you that take a look at this site http://webhostingtipsonline.com may be it can help you
As you described; "Im gonna use this for the mean time for a project at school and i'm broke to buy a webhost and i don't want to use a freewehost with ads. but is it possible? can i host my webpage using Xampp outside localhost? if i'm gonna leave my computer running then it's fine with me. some one said that you need to type in your ip from whatsmyip but i tried to replace localhost with my ip but nothing happen. do i need advance configurations or something?" I hope it might help you.
All the Best :)
- 1 decade ago
If you're using a Router and your Pc is directly conneced to it ...
You need to go to your router address (usually192.168.1.1)
and there you will probably find a link that says Virtual Servers
click on it and Enable this ports:
Description - Port - Address
httpd - 80 - 192.168.1.[ x ]
mysql - 3306 - 192.168.1.[ x ]
ftp - 21 - 192.168.1.[ x ] < For advance users *
And also you need to find out the address that your computer is using, example my Pc is running on the following : 192.168.1.14
So on [ x ] i just put 14
(*Port 21 I don't really use it, unless you want to use a web program
where people can upload files to your website like phpalbum.net )
And if that doesn't work you need to go to
Firewall Settings and unblock Xampp .
I'm hosting my Web Projects through Xampp "wireless"
(I leave my Laptop on running on WiFi connection)
if this is your first time trying to run xampp I will
recommend to do it directly connected to your router!!
I also reccomend Logmein.com to acces your websever !!
- catbertncLv 51 decade ago
For your purposes I'd say setting up your own web server is much more trouble than it's worth. In many places, you have to pay your ISP an extra fee before they allow you to set up a server. There are plenty of free web hosts that are ad free and of good quality. They're not hard to find if you do a little looking on Google.
- How do you think about the answers? You can sign in to vote the answer.
- Anonymous1 decade ago
Projects And Programming Helps-
- 1 decade ago
if your determined to setup and host a webserver from your home, note that some ISPs will block your hosting capabilites but its worth a try.
'Assuming your on a basic home network.
custom confguration will be required of addresses and such.
Setup your "server" with a static ip address within your local network
Access your router and configure port forwarding to point port 80 from WAN inside to port 80 on address 192.168.1.10. (All home routers are different, consult your user manual of your router for instructions on how to enable port forwarding)
In xampp settings, allow outside hosts to access the service.
If you have a dynamic IP, go to www.dydns.org and register. Setup a forwarding address per instructions on their site (ex. mysite.dyndns.org)
Most home routers allow you to enable dydns by default (dynamic DNS). You may be able to enable this service by simply setting up your username/pass within your home router for dydns.org. Otherwise you can download dydns.org's tool that will run on the webserver and update your public ip settings accordingly.
If you have any further issues, I can remote assist you and help with the project. Please visit www.crossloop.com/shanemaynard for more information.
- ?Lv 43 years ago
Hey I'm here for the first time. I found this question and I find the answers really helpful. I am hoping to give something back and assist others too.
- 4 years ago
I would recommend using xampp to see coding like php and other coding like html and that. Also you can edit the code and save and refreash and see what changes you make.