Use WAN and LAN IPs to Access Server Internal

November 1, 2010 at 16:08:29
Specs: Windows 7 Ultimate x32, 2.8 GHZ/1 GB
Is there any way that I can use my WAN IP as well as my LAN IP to access my home web server while inside the LAN?

I have the web server running and a site that is almost ready to go live, but I would like to have search on it. I am planning to use Sphider for the search, but the only way that I can index the site is by using http://localhost/ as the domain. Using this as the domain, obviously, gives results of http://localhost/ whenever I'm searching from outside the server/on the internet, which is not a good thing because the links then don't work! I would like to be able to use my domain as the domain in Sphider, which is mapped to my WAN IP, but I get a timeout error.

How can I do this? I have played with some settings in my router, but I can't seem to find anything that works or anything on the internet that can help me. The router is a Westell Versalink 327W if that helps any.

Thanks!

~William
My Site: http://willstech.org/
It's a work in progress! =P


See More: Use WAN and LAN IPs to Access Server Internal

Report •


#1
November 1, 2010 at 16:21:44
Is there any way that I can use my WAN IP as well as my LAN IP to access my home web server while inside the LAN?

For this to happen the router would have to know the wan ip request came from inside the lan and it would have to know where you wanted it to end up back on the lan side. Routing doesn't work like that.

I have read of routers that support loopback that can do something like this but I haven't worked with this aspect of a router.

What may work is to put a hosts file entry in.

wanip servername

Do you know how to edit a hosts file?


Report •

#2
November 1, 2010 at 16:24:51
I honestly have no idea, and if it involves modifying the router, it might be hard because my ISP has it pretty locked down other than the webgui.

~William
My Site: http://willstech.org/
It's a work in progress! =P


Report •

#3
November 1, 2010 at 16:28:56
More of what I'd like to do is if I type in the domain (willstech.org) for it to loopback to the server, which I assumed would do so if it did it with the WAN ip.

~William
My Site: http://willstech.org/
It's a work in progress! =P


Report •

Related Solutions

#4
November 1, 2010 at 23:12:57
Further to what Wanderer said, most SOHO routers behave like this. The only router that I have come across that will allow you to access to the sever via a URL or public IP address from within the LAN have been Belkin routers.

D-Link routers even state in the manual that you cannot do what you are trying to do.

Stuart


Report •

#5
November 2, 2010 at 09:23:24

Report •

Ask Question