Forum Moderators: phranque

Message Too Old, No Replies

Remote LAN access

How to enter lan from remote location

         

mack

9:49 pm on Feb 25, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have one net connection that runs into a win xp computer (home edition) I have another box running linux that connects throgh the windows box using a lan and a network hub.

I can browse web pages hosted on the apache server on the linux box and I know the ip of the windows box. Is it possible to allow access to the apache server across the web?

DaveAtIFG

5:39 am on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Probably not with your current configuration. The Linux box likely has a unique IP assigned by the router in the 192.168.123.XXX range, a typical value for an intranet.

You will need to reconfigure so that the Linux box connects to your assigned IP and permits the Windows box to share that connection via the LAN, or get another IP/connection for the Linux box.

mack

12:56 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



so would the ip for the unix box need to be the same as the real word ip of the web connection?

could this be done by altering the windows xp host file to reflect a different ip address for localhost?

lorax

2:08 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



mack,
I have a similar configuration. FWIW I run a firewall/router right after my cable modem and then have my server and my workstation plugged into that. When I need access to the webserver from the outside world, I need to know the IP of the location I'll be at and then I configure the router to allow that IP/port through to the IP/port of the webserver. When I'm done, I plug the hole. The router does NAT and on top of that I run Zone Alarm to protect my workstation - just in case. The webserver is a development/test environment only.

mack

2:46 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Im thinking I need to use the xp box as a router, would it be possible to send traffic on port 80 to the localhost on another machine?

sorry but im a bit lost on this topic.

lorax

3:21 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No apologies necessary as I'm on the edge of my knowledge too.

The short answer to your question is I don't know. My instinct is that you shouldn't use your XP machine as the router because you'll have no/little protection. Routing traffic requests on port 80 to another machine - I think is possible. How? I don't know.

mack

4:11 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Lorax thanks for the reply.

I attempted to alter the host files in by setting the entry to

my.ip.address.here localhost # location of localhost.

I re-booted the ststem and tried to go to localhost in my browser. no such luck. I will do a bit of gogleing just now and report back if i have any luck.

PaulPaul

4:25 pm on Feb 26, 2003 (gmt 0)

10+ Year Member



Why not switch the order? Have the net connection go to the linux box and connect to the internet with the XP machine through the linux box?

mack

11:31 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That woudl be the easy alternative...anly problem is I dont have a linux compatable modem on the linux machine :)

It is more or less used as a lan server for test purposes...but it woudl be good to be able to offer smaples over the web by allowing remote access.