Getting it on the net from my lan

Associate
Joined
18 Oct 2002
Posts
710
Location
Somerset
I have been looking at running a stats program to go along with a small game server i am running, after some searching i came across a guide that seemed ideal, it just uses the built in stats logging from the game and has no impact on the game while it is running.

So off i go and get all the software needed to get it running,

Apache
MYSql
PhP

all downloaded and installed along with the stats program,

Serveral hours of tweaking and a quick run in the game to generate some stats and its all working

At this point everything is running on my PC....
Game server
Game
Apache
MYSql
PhP

and in my browser i have the stats running as they should accessed by http://localhost/otherstuff
i can change local host to my PC IP and it works across my lan

The big step now is i want a few other people that will be using the game server to be able to load this page up in a browser but at the momnet they can not.

I am thinking that Apache needs re-configuring to make this avaliable over the Net?

The easy way to have done it would have been to upload the stats program to my ISP web space and run it from there, but i already have 1 database on there and that is all they allow. so rahter than paying for a differant host i thought i would try it my self. but have hit a brick wall getting it down the wire and out of my house.

If any one can help or point me in the direction of a guide i would be very greatful.

Thank You
Keith
 
you don't need to touch your apache configuration at all. i assume you're using a router. just go here

http://www.portforward.com/english/applications/port_forwarding/Apache/Apacheindex.htm

hopefully your model is on the list and it will tell you what to do......

and to make life a little easier for people visiting your site, you don't really want to make them browse via your ip address. so sign up here www.dyndns.org (it's free) now choose a domain and point it towards your ip address. now people can just type in

http://you.dyndns.org

and if your ip from your isp changes, then you can just update it. it's all very easy. :)
 
Thanks marc2003 that has taken me a step in the right direction, i did not know about port 443,

Now rather than the page never loading i am getting the requested URL was not found on the rompager server, something for me to go and look up.

as for the domain name that is something to look into once it is all working via IP, it is only going to be a very small number of people using it but would be better than using my IP all the time.
 
OK 443 removed, 80 forwarded.

Apache is installed to c:/program files/Apache group/apahce2

There is then a folder in there called htdocs which is where everything i am creating is being put, so i am assuming this htdocs folder acts as the root,

So if i then have a database called DB1, inside a folder called DBhome which is in the htdocs folder

htdocs\DBhome\DB1

then in a web browser i would go

http://myIP/DBhome/DB1

Or is that wrong? because that is how it is working when i use local host, but when using my IP i am now getting this URL not found on rompager server which suggests the page i am requesting is not listed with Apache as being available, yet on local host it is,
I am trying to find something on this rompager server error.

I am a complete noob as far as any of this goes, in the past it has always been upload it to my ISP, so i have no experience of hosting something form a PC sat in front of me.
 
OK I think the rompager server is actually my router and nothing to do with Apache at all.

just went directly to my external IP and i got the log in screen for my router, so my router is not then finding the database on 'it' rahter than looking at the PC [bangs head on wall]
 
OK I think the rompager server is actually my router and nothing to do with Apache at all.

just went directly to my external IP and i got the log in screen for my router, so my router is not then finding the database on 'it' rahter than looking at the PC [bangs head on wall]

the website itself should work exactly the same as it does as if you were browsing under localhost. don't change a thing.....

and you can't browse yourself using your external ip (it's to do with the way routers work - it's quite common)

you'll have to get a friend or use a proxy to test your site is working from the outside world. i can even test if you like. my username @ gmail . com if you don't want to post your ip on the forum .:)
 
Googled a proxy stuck in the details and page loaded :D

Thank you marc, when i first posted i never expected it to be something so simple as port forwarding,
In fact port forwarding is always the last thing i think of when trying to get 'stuff' to see the outside world, and it really should be one of the first.

Also thanks for the offer of testing.
 
Back
Top Bottom