Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting 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

Forum Jump


All times are GMT -5. The time now is 03:46 AM.

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

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