Okay so what i want to do is make a wepage that has a php script that captures and sends me the public ip adress of whoever looked at the site.I have installed Xampp, with Apache and MySQL on my computer and i have the php script ready.The problem is i dont know what to do from that, ive tried researching how to get my server on the internet but all the search results are about hosting companies and ads.I dont even need my webpage to be easily looked up i just need it to be on the internet. Again i want to host my own webpage.

Do you have a public IP on your server or on your router?, if its on router you would need to port forward to your server, if its on your server you should already have access to the internet, or your firewall blocks the HTTP port(80).

xTractatorix wrote:Okay so what i want to do is make a wepage that has a php script that captures and sends me the public ip adress of whoever looked at the site.I have installed Xampp, with Apache and MySQL on my computer and i have the php script ready.The problem is i dont know what to do from that, ive tried researching how to get my server on the internet but all the search results are about hosting companies and ads.I dont even need my webpage to be easily looked up i just need it to be on the internet. Again i want to host my own webpage.

Your server is on the Internet already, it's just that to access it, somebody has to type in your computers I.P. address + whatever you named your webpage that you're hosting into their URL bar. If you want to have your own '.com', '.net', '.org', '.edu', or whatever, you're going to have to purchase the domain name from a company, like GoDaddy, or something similar. There are, however, free sites that allow you to use their services (such as http://www.webs.com), as long as you're willing to accept the use of a subdomain (Also, I'm not sure they allow PHP scripts to be run). However, you may or may not be able to register your I.P. at a site that allows you to create a free domain name (however you have to use their extension), such as Dot.tk .

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook

Hosting will not necessarily cost money.. And like above said, you don't need to pay money for a domain name. But realistically, just like in any situation, if you want the good stuff it's gonna cost you. Your own domain is cheap, fifteen dollars a year. Hosting can be forwarded to your own box through various different methods, dyndns, afraiddns, whatever. That way you manage the box completely from home. But even still, it gets complicated with the IP changes and whatnot.

centip3de wrote:Your server is on the Internet already, it's just that to access it, somebody has to type in your computers I.P. address + whatever you named your webpage that you're hosting into their URL bar. If you want to have your own '.com', '.net', '.org', '.edu', or whatever, you're going to have to purchase the domain name from a company, like GoDaddy, or something similar. There are, however, free sites that allow you to use their services (such as http://www.webs.com), as long as you're willing to accept the use of a subdomain (Also, I'm not sure they allow PHP scripts to be run). However, you may or may not be able to register your I.P. at a site that allows you to create a free domain name (however you have to use their extension), such as Dot.tk .

Thankyou, i was getting very confused about the whole domain name thing.Also im fine just using the ip adress. So for someone to acess my webpage they would type in xxx.xxx.xxx.xxx/Webpagename ?

Yes. Say your IP address is 5.5.5.5. As long as you have your router forwarding all traffic on port 80 to you own webserver, then when someone visits 5.5.5.5 in the URL bar, they will reach your index page. If your website has a page like website.blah/images/nakedlesbo.jpg then they would type in 5.5.5.5/images/nakedlesbo.jpg.