Click to See Complete Forum and Search --> : about web server


cyh781s
02-08-2003, 09:39 PM
hi, don't know if this is the right palce to post this :)

I want to view the php page i made from other computers through internet. The following is my home network setup, just want to know if it is possible to do it.

My windows XP is the main computer with 2 network cards, one is to connect to cable modem and the other is to a hub. My linux box is connected to the hub so linux shares the internet throught the hub.

recently i was trying php + mysql + apache server. everything works fine, but i can test in localhost in linux box only. I know i need to change the servername = localhost to the real ip address. but since my linux box is connected through the hub. the eth0 is just 192.168.0.X, not the ip in XP which is given by ISP.

Just wondering if there is a way to setup so i don't need to change my home network setting now (kinda lazy ;)) and still can test my php page on my other computers.

And yes i know the best way is to have my linux box as the main computer to connect to cable modem directly and share the internet to other computers. Still want to know if it is possible.

Thanks

KilerCris
02-09-2003, 02:50 PM
Hmm...I'm not sure exactly but you'll need to find an option to forward port 80 to your linux box. Thats what'd you would do with a router but I don't know how you would set that just using connection sharing in windows XP. Look around for port forwarding in all those advanced network settings.

or

go buy a router:D

z0mbix
02-09-2003, 03:03 PM
You can easily setup port forwarding in Windows XP through the settings button on the advanced tab of the network connection. I've done it in the past.

cyh781s
02-09-2003, 06:47 PM
Thanks guy,
I got the idea.
Can you recommand any site about network settings?

ginkoomo
02-09-2003, 10:13 PM
Here's a god site for building a server and networking it
http://www.dslwebserver.com/

Peace

Ginko