Server problem

Jun 4, 2005
19,723
1
0
I've got apache running off one of my computers, and that computer and this one are sharing an internet connection via a router. So, our IP addresses are both the same.

The problem is, when I try to access the server from this computer, it says it cannot be found. I assume this is because it's looking for the server on it's own machine, and noth on the other computer.

Other people are able to access it, so it has to be because of the twin IP's.

Is there anything I can do about this?

PS : Sorry if this is in the wrong place, I was tempted to put it in the networking forum, but don't know if it qualifies as a network problem.
 
Jun 4, 2005
19,723
1
0
Unfortunately, I'm a new at all of this and would need a lot of assistance. -,-

I have a DLink router, if someone could guide me step by step. :(
 

kalster

Diamond Member
Jul 23, 2002
7,355
6
81
port forwarding, see support.dlink.com for port forwarding stuff, it would be sort of hard to give you step by step instructions
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Log in by going to http://192.168.0.1 and click on the Advanced tab. Look down below in the "Virtual Server List" for "Virtual Server HTTP".

Click on the little note icon on the right and click enable then type in the last set of digits for the IP.

This should route port 80 from external access to that specific computer.
 

tami

Lifer
Nov 14, 2004
11,588
3
81
go to your router config (http://192.168.0.1 most likely). log in as admin, and the password probably is also admin (you should change that). go to advanced tab, then port forwarding, and forward port 80 to the specific LOCAL IP of the machine your webserver is set to.

on your linux server, it's probably accessible through something like /sbin/ifconfig. you'll see eth0 and the inet address is listed beside that. use that address and specify port 80 to point towards 192.168.0.whatever.

if that's not the right ip address (it's not 192.168.0.1), then you can run cmd and type ipconfig /all and you'll see the gateway listed there. http:// to that IP address instead and follow the above instructions.
 
Jun 4, 2005
19,723
1
0
I can access my other computers server on 192.168.0.101 =/ I need to be able to access it on 24.57.110.79 (Both computer have the same IP)
 

tami

Lifer
Nov 14, 2004
11,588
3
81
if both of them are sharing port 80, you're out of luck. you can't have two webservers running at the same time on the same port or port forwarding won't work.