Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 23, 2013, 09:22 PM   #1
kiantech
macrumors regular
 
Join Date: Jun 2007
OSX Server Website

On my server I setup own cloud using a domain I own. Lets say I made it oc.example.com

I have my DNS for my subdomain forward to my home ip address. When I am not on my local network and type oc.example.com everything works. When I try to browse oc.example.com in my browser when I am on the same LAN as my server, nothing works. If I type the ip address of my server I get the default server app. Anyone know why I can't connect to my domain when I am on my local network, but works perfectly when I am remote?
kiantech is offline   0 Reply With Quote
Old Aug 24, 2013, 10:44 AM   #2
alexrmc92
macrumors regular
 
Join Date: Feb 2013
Quote:
Originally Posted by kiantech View Post
On my server I setup own cloud using a domain I own. Lets say I made it oc.example.com

I have my DNS for my subdomain forward to my home ip address. When I am not on my local network and type oc.example.com everything works. When I try to browse oc.example.com in my browser when I am on the same LAN as my server, nothing works. If I type the ip address of my server I get the default server app. Anyone know why I can't connect to my domain when I am on my local network, but works perfectly when I am remote?
This is called NAT loopback and most household routers do not support it. Basically your trying to contact your website's public ip address from the same ip address (because you are on the same network). I hope that makes sense.

Anyways the quickest fix is to setup the OS X DNS server on your mac server and point oc.example.com to your mac server local ip address. Make sure all of your local computers are set to use it for dns.
alexrmc92 is offline   1 Reply With Quote
Old Aug 24, 2013, 07:34 PM   #3
kiantech
Thread Starter
macrumors regular
 
Join Date: Jun 2007
Quote:
Originally Posted by alexrmc92 View Post
This is called NAT loopback and most household routers do not support it. Basically your trying to contact your website's public ip address from the same ip address (because you are on the same network). I hope that makes sense.

Anyways the quickest fix is to setup the OS X DNS server on your mac server and point oc.example.com to your mac server local ip address. Make sure all of your local computers are set to use it for dns.
Okay I got it to work. Few things I did.

I set my OSX Server to have dns enabled. Under forwarding servers I put opendns.

Then under host names I put my oc.example.com with the local 192 adress of the web server.

Finally on my computer I put my server as my main dns, open dns as backup.

Boom everything works now.

Thanks for steering me in to the correct logic of what was going on.
kiantech is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Server upgrade website iCal problems faganj Mac OS X Server, Xserve, and Networking 0 Feb 4, 2014 05:01 AM
OSX 10.5 Server help Warfel005 Mac OS X Server, Xserve, and Networking 0 Dec 9, 2013 01:39 PM
Please help! Hosting Website and FTP Server Macs4u Web Design and Development 6 Sep 1, 2013 09:08 AM
OSX Server website hosting famous600 Mac OS X Server, Xserve, and Networking 2 May 7, 2013 02:01 AM
Actualizing my mini server to OSX server ecapdeville Mac OS X Server, Xserve, and Networking 3 Jul 25, 2012 10:54 PM

Forum Jump

All times are GMT -5. The time now is 10:04 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC