1
flakrat
Can't browse Xoops site from Local Network, but can from Internet
  • 2005/3/15 17:14

  • flakrat

  • Just popping in

  • Posts: 1

  • Since: 2004/12/28


Howdy y'all,

Here's my setup:
1. XOOPS is running on a Fedora2 box with Apache 2
2. The machine is on a network using a Belkin Cable Router using NAT and port forwarding of port 80 to the XOOPS box.

Description:
I can access the XOOPS website from the Internet, I can log in, modify pages, etc...

When I'm at home and connected to the local network, if I connect to the URL, I either get a blank page, or I get the router configuration page.

I've also tried at home to connect to the IP address, http://192.168.2.100/
When I do this, the IP gets converted to the domain name and I get the same problem.

I've even tried telling Apache to listen on a different port, 8000, tried connecting and I get the same problems.

The question:
Is it possible for me to configure XOOPS so it will not convert http://192.168.2.100/ into the web address, ex: http://somexoops.site.com/ so it'll allow me to connect when I'm on the local area network?

Thanks,

Mike

2
talunceford
Re: Can't browse Xoops site from Local Network, but can from Internet

Thats not a XOOPS problem, thats a DNS problem. You need to add some entries to your hosts file, that map the address 192.168.x.x to http://www.yoursite.com. I've had to do it on my linux box countless numbers of times.

Hope that helps,

3
dickinsd
Re: Can't browse Xoops site from Local Network, but can from Internet
  • 2005/3/21 2:21

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi.

If you are typing a local address for your local machine e.g. 192.168.1.2, this should work fine.

If you type a domain name or EXTERNAL address e.g. 82.140.64.25 or http://www.flakrat.com

Then you WILL have problems becuase your router/modem will detect the start address and the end address, realise this is a local request and point you to your gateway. (the belkin device you mentioned)

If you can access your site from other places on the internet then apache should be working fine, that is not your problem.

To test:

Whilst on your local network follow this link for an anonymous connection:
http://www.proxyone.com/
go to the bottom of the page where it says Free Surf and enter your External IP address or domain name if you have a domain pointing at your home server..

You should find that as the anonymous service masks your start address the modem/router will not detect it as a local request and should just forward the request on to the Apache Server on FC2.

Try this as I definately think that is your problem.

If this is your prob, there is no way around it that I know of (other than using anonymouse proxies (which I believe is not hard to setup on Fedora anyway??)) If this is your prob perhaps you can share some info with me.. Do you use Webalizer? and have you successfully allowed external access to the files? I tried, it worked one night and never worked again

Dave

4
reticular
Re: Can't browse Xoops site from Local Network, but can from Internet
  • 2005/3/30 20:20

  • reticular

  • Just popping in

  • Posts: 1

  • Since: 2005/3/30


I was having the same problem and here is a solution that I found.

1. XOOPS stores your sites address in mainfile.php. The default installation had hard coded my sites ip address (63.129.xxx.xxx) so I changed it to the site name (http://mysite.com).

2. Next I changed my /etc/hosts file to map the domain name to a local network address.

3. Now I can log on without my NAT router admin screen popping up every time.

hope that works

--tim davis reticular@gmail.com

Login

Who's Online

530 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 530


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits