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 Jul 20, 2009, 03:33 PM   #1
armoguy94
macrumors 6502
 
Join Date: Nov 2007
Nobody can connect to my public IP address!

I'm running regular Leopard (not server), and I connect to the internet wirelessly through a Linksys WRT54GS (v2.1) router, which is hooked up to a Comcast cable modem. There are about 3-4 computers on our network.

When I enable "Web Sharing" in System Preferences, it says people can connect to my computer through my local IP address. It doesn't display my public IP address, so anyone outside of my network can connect. Of course, though, people connected to my house's wireless have access to my computer because of web sharing.

Whenever I type in my public IP address, it takes me to my router configuration page (which I can also get to by typing in 192.168.1.1...).

What am I doing wrong? In my 4+ years of owning a Macintosh, I've never been able to figure this out.

BTW, there are absolutely no firewalls or restrictions on my computer, or router.

armoguy94 is offline   0 Reply With Quote
Old Jul 20, 2009, 03:35 PM   #2
yippy
macrumors 68020
 
yippy's Avatar
 
Join Date: Mar 2004
Location: Chicago, IL
Send a message via AIM to yippy
This has nothing to do with your Mac and everything to do with your router. By default, all routers block incoming connection from the external port (public IP). You need to read your routers manual and set up port forwarding on port 80 to your Macintosh.
yippy is offline   0 Reply With Quote
Old Jul 20, 2009, 04:06 PM   #3
geoffreak
macrumors 68020
 
geoffreak's Avatar
 
Join Date: Feb 2008
Location: Texas; Wish I was in Japan
If you can really get to your router's configuration page from outside your network with your public IP address, that is a SERIOUS security flaw. You need to go into your router and disable access from outside the network.

In order to access your webserver from outside your local network, you will need to tell your router to forward port 80 (and 443 for https) to your internal IP. Make sure that the computer with the web server on it has a static IP so that the forwarding will always function properly.

Don't forget that many ISPs block port 80 and don't permit web servers to be used in a home account. You will need a static IP address from your ISP if you plan on connecting a domain name to your web server.
__________________
rMBP 2.6GHz 16GB 512GB | Mac Mini 2009 2.26GHz | MBP Early '08 2.4GHz | iPhone 4S 32GB | Drobo
Nimbix - Accelerated Cloud Supercomputing
geoffreak is offline   0 Reply With Quote
Old Jul 20, 2009, 04:15 PM   #4
Phil A.
macrumors 68040
 
Phil A.'s Avatar
 
Join Date: Apr 2006
Location: Telford, UK
Your router shares it's external connection with your computers using Network Address Translation. Basically, what this means is that you have to tell the router where to send incoming traffic to (normally using an option called port forwarding): Effectively you tell the router to send traffic on a specified port to a particular computer on your local network. Without this, all unsolicited traffic will go to your router and stop (I say unsolicited because if you've started a connection to a website and it's sending data back to you the router handles that automatically: It would be a bit useless otherwise as you wouldn't be able to connect to any websites!).
There are a few complications with things such as Universal Plug and Play (UPnP) but that's the basics of NAT
Also, if you don't have a static IP address you'll need a Dynamic DNS provider such as www.dyndns.org so that people can find you when your IP address changes
__________________
Tell a man there are 300 billion stars in the universe and he'll believe you. Tell him a bench has wet paint on it and he'll have to touch it to be sure. ~Murphy's Law
Phil A. is offline   0 Reply With Quote
Old Jul 20, 2009, 05:58 PM   #5
belvdr
macrumors 68040
 
Join Date: Aug 2005
Quote:
Originally Posted by geoffreak View Post
If you can really get to your router's configuration page from outside your network with your public IP address, that is a SERIOUS security flaw. You need to go into your router and disable access from outside the network.

In order to access your webserver from outside your local network, you will need to tell your router to forward port 80 (and 443 for https) to your internal IP. Make sure that the computer with the web server on it has a static IP so that the forwarding will always function properly.

Don't forget that many ISPs block port 80 and don't permit web servers to be used in a home account. You will need a static IP address from your ISP if you plan on connecting a domain name to your web server.
Spot on. You can also use a dynamic DNS service, such as DynDNS.org, to attach a domain name. Personally I use this just so I can connect back to the home network while away. Web hosts are too cheap these days to be saturating my home bandwidth with that.
belvdr is offline   0 Reply With Quote
Old Jul 21, 2009, 03:52 PM   #6
armoguy94
Thread Starter
macrumors 6502
 
Join Date: Nov 2007
Thanks for all the replies!

The problem was that I was port forwarding incorrectly after all. I have ports 80 and 8000 port forwarded now, 80 for web and 8000 for radio broadcasting via Nicecast

I also have set up a DynDNS, it works good as well. I would love to set up a proper domain name to my computer without paying for any service (excluding the domain name itself obviously), it's a shame DynDNS won't allow me to without a subscription. However I don't really have the dire need for that right now.

One annoyance is sometimes the LAN IP of my iMac changes, so I have to always check for that and if it does change, I have to change the port forwarding settings in my Linksys configuration page.


Is there any way to make my LAN IP static?
armoguy94 is offline   0 Reply With Quote
Old Jul 21, 2009, 04:38 PM   #7
neil1980
macrumors 6502
 
Join Date: Nov 2008
yeah,

Under system settings, network, advanced (or somewhere like that) should be able to manually configure your TCP/IP settings and assign a static IP.

Alternatively you may be able to reserve an IP for your macs mac address with your router
neil1980 is offline   0 Reply With Quote
Old Jul 21, 2009, 04:45 PM   #8
armoguy94
Thread Starter
macrumors 6502
 
Join Date: Nov 2007
Quote:
Originally Posted by neil1980 View Post
yeah,

Under system settings, network, advanced (or somewhere like that) should be able to manually configure your TCP/IP settings and assign a static IP.

Alternatively you may be able to reserve an IP for your macs mac address with your router
Great, thanks!
armoguy94 is offline   0 Reply With Quote
Old Jul 22, 2009, 06:00 AM   #9
milk242
macrumors 6502a
 
Join Date: Jun 2007
I would recommend zoneedit for free dns services that allow own domain names.
__________________
I own everything
milk242 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
Macbook self-assigning IP address, can't connect to wifi neonbliss Mac Basics and Help 6 Sep 5, 2014 08:12 AM
Foreign IP address is trying to connect to Mac oneworld Mac Basics and Help 2 Nov 12, 2013 03:05 PM
IP address 72.21.91.19 wants to connect to my Mac Jalopy Mac Basics and Help 3 Feb 8, 2013 08:17 PM
VPN can't connect after new public IP address pdpfilms Mac Applications and Mac App Store 8 Feb 1, 2013 12:26 PM
iPhone: Unable to connect to public/subscription Wifi Mercifull iOS 6 3 Sep 25, 2012 09:40 AM

Forum Jump

All times are GMT -5. The time now is 07:17 AM.

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

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