Forum Moderators: phranque

Message Too Old, No Replies

remote access apache virtual host

         

seanisean

4:50 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



Hi,

Just spent a bit of time setting up apache2, sql and php on my windows XP box so i can develop a database driven site locally using apache as a virtual host.

I'm looking for a way to connect to my development site remotely from a collegues computer via his browser... is this possible?

So far i have tried connecting in this format:
[ip.ip.ip.ip:port...]
in an attempt to access the site it seemed logical to me at the time and was expecting to see a password gateway appear to no avail, but i think i'm out of my depth when it comes down to things genarally apache!

any help is greatly appreciated, many thanks in return

sean

jdMorgan

5:10 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sean,

Welcome to WebmasterWorld!

You'll need to configure your network to do this, and this presupposes that your ISP will allow it (some don't -- read their TOS carefully).

You need to find your 'public' IP address -- the address of your 'modem' on the internet, and note that address to be used to request your pages.

Then you need to configure your firewall/router to 'port forward' requests amde to that public IP address to the IP address of your server on your LAN.

If you don't have a firewall/router, then stop here and go buy one. The average time from putting a server online until the first exploit attempt is now about 17 seconds...

Jim

seanisean

5:53 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



hi jim,

thanks for your reply, as for my isp its bulldog and they serve me a dynamic ip or static so long as i dont reboot my router, the ip i used in the address was the one displayed at the top of this page and the port i used was the one that apache is using by default which i have forwarded in my virtual server settings on my router. Is my url format in my original post the correct format? or am i getting the whole ip thing mixed up?

kind regards

sean

jdMorgan

6:21 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The request in your post looks like you got it right...

[192.168.0.1:80...]

should work, if you substitute your own IP and port number, and the correct page-path.

Details: What response did you get when you tested, and how did tht response differ from what you expected?

Jim

seanisean

1:37 am on Feb 1, 2006 (gmt 0)

10+ Year Member



I am at a bit of a loss, i was expecting a password gateway but just got the 'cannot find server' instead! so either i'm really grateful that my pc is rather hard to get into from a security point of view or i'm really frustrated that even with knowing the required address, port, path, user name and password i still cant get in :0#..... or i'm just overlooking something because i simply just dont have the experience with networking? i wish i could give you more information but i'm not seeing what it is that i need to pass on?

by the way thanks for your help

sean