Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > I'm so close to running my own server - but I need a little help...

I'm so close to running my own server - but I need a little help...
Thread Tools
Mac Elite
Join Date: Aug 2003
Location: Minnesota
Status: Offline
Reply With Quote
Mar 22, 2005, 09:27 PM
 
Okay, I followed the instructions here to set up Apache on my G5 (but running Jaguar): http://www.macdevcenter.com/pub/a/ma...ar_server.html (By the way, this is a neat set of instructions.)

My only problem is that when I type in my IP address in Safari, I get the configuration screen of my Actiontec router (model R1524SU). Behind my router is an airport base station with a direct cable connection to my G5.

I tried to forward ports 80 to 80 to the only IP address it will let me forward it to: 192.168.0.4, but that didn't work. Neither my DSL provider nor my ISP will help.

Is there something I'm missing, or am I doomed to serve the world my router configuration page.

By the way, for security reasons, I turned off Personal Web Sharing until I can figure this out, and set a password for my router.

On the other hand, I like a challenge, and this one will be fun. Thanks!
     
Senior User
Join Date: Sep 2002
Location: Canastota, New York
Status: Offline
Reply With Quote
Mar 22, 2005, 09:49 PM
 
Can you be a bit more specific about your configuration?

You have an airport base station behind a router (and the router is hooked up to the internet)?

I assume the IP of the router is something like 192.168.0.1?

what is the IP of the Airport base station?

What is the IP of the G5 running Apache?

What is the IP of the computer that you're trying to connect to the G5 with? (or is the G5 your only computer?)


If you (for example) have a laptop getting an IP (10.0.1.2) from the Airport Base Station (which has an IP of 10.0.1.1 for example), and the G5 is 10.0.1.3, then I don't see how you'll be connecting to your routers (192.168.0.1) config screen when you type in the IP for the G5 (10.0.1.3).

... unless you're not having the Airport base station run a DHCP server and am letting the other router give out IP addresses (192.168.0.x)

Anyway, we need more info to help you.
     
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status: Offline
Reply With Quote
Mar 22, 2005, 10:49 PM
 
Does your DSL company block port 80?
     
Fresh-Faced Recruit
Join Date: Aug 2002
Location: New Zealand
Status: Offline
Reply With Quote
Mar 22, 2005, 11:25 PM
 
from inside your own network, putting your external IP will always send you to the router screen. I suggest you get someone outside your LAN to try, you may find that it is working.

I don't know of a way to make the router forward internal connnections back to your computer.
     
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 23, 2005, 12:20 AM
 
You need to setup an internal DNS server, then point your router at your server as it's default DNS. Essentially you want to 'name' yourself on the internet. I have tried to do this (Panther) but it is rather difficult. The only GUI tools available AFAIK for OS X cost money (iTools ~like $500, or Panther Server...) You have to be _very_ comfortable in the terminal if you dont have GUI config tools. A DNS server with incorrect configuraion can actually harm other internet users (ie. you could screw up DNS for everyone on your ISP's subnet or maybe worse)

My current workaround it that if I want to access my server from the local network I use the AFP name to reach machines. Go to http://serverName.local/~user instead of http://yourdomain.xxx - problems with this is that I have to modify each link to look like that. images dont work if you are using full link paths, and not relative. etc...

But then again, this is why people are willing to spend good money on getting DNS. Every _real_ server has DNS.

Come to think of it, I really need to get DNS up and running. If anyone has experience setting up a DNS server (with both foreward and reverse lookup) I would love to hear about it! Especially if you did it without GUI tools.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Mac Elite
Join Date: Aug 2003
Location: Minnesota
Status: Offline
Reply With Quote
Mar 23, 2005, 09:30 AM
 
To be more specific, here is my configuration.

DSL line comes into my house. I have an ActionTec R1524SU modem connected to my phone line. I have an airport base station connected to the ActionTec modem.

All my computers (Macs and PC's) connect wirelessly to the airport base station, except my G5 which connects via a wired connection to the base station. This way, everything is on the same subnet which lets my USB printer work (also connected to the airport base station).

All internal computers (and the airport base station) have an IP address like 10.0.1.1.

Only my router has a real IP address, and I have a static IP address.

I'm trying to use the G5 as a server, using OS X's Personal Web Server (really Apache) feature in the System Preferences.

I tried a connection from outside my network, and it couldn't find the Apache default page.

I think my problem is that I can forward port 80 on the modem to my airport base station, but somehow the base station is not forwarding the traffic to my G5. My DSL company does not block port 80. Do I really need an internal DNS server????
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Mar 23, 2005, 10:01 AM
 
No, you don't need an internal DNS server as long as the IPs don't keep changing. But something struck me as odd:

You mentioned the address 192.168.0.4 which is not an external IP. Is your actiontec modem acting as a router too? If so, turn the NAT routing functionality off. Your Airport is doing the NAT, so it should be getting an external IP address from the modem directly. Right now it sounds like you have two NAT layers going on.

You then should be able to connect to your machines at home using 10.0.x.x, and from outside, using an external IP. (If it's 192.168.x.x, then it's not the external IP).
     
Moderator Emeritus
Join Date: Dec 2000
Location: College Park, MD
Status: Offline
Reply With Quote
Mar 23, 2005, 10:06 AM
 
     
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 23, 2005, 10:50 AM
 
Originally posted by hayesk:
No, you don't need an internal DNS server as long as the IPs don't keep changing. But something struck me as odd:

You mentioned the address 192.168.0.4 which is not an external IP. Is your actiontec modem acting as a router too? If so, turn the NAT routing functionality off. Your Airport is doing the NAT, so it should be getting an external IP address from the modem directly. Right now it sounds like you have two NAT layers going on.

You then should be able to connect to your machines at home using 10.0.x.x, and from outside, using an external IP. (If it's 192.168.x.x, then it's not the external IP).
You need DNS even if you have static IP. Beleive me.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Mar 23, 2005, 11:38 AM
 
Originally posted by hadocon:
You need DNS even if you have static IP. Beleive me.
I'm not talking about an external static IP. I'm talking about if the internal machines are using DHCP on the NAT router that is giving out different internal IPs to the machines. If you give the machines manual IP addresses, then you don't need a DNS, unless you are implementing virtual hosts.
     
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 23, 2005, 11:54 AM
 
Originally posted by hayesk:
I'm not talking about an external static IP. I'm talking about if the internal machines are using DHCP on the NAT router that is giving out different internal IPs to the machines. If you give the machines manual IP addresses, then you don't need a DNS, unless you are implementing virtual hosts.
OK, good we cleared that up. Sounds like you know what you are talking about.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2