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 > Software - Troubleshooting and Discussion > macOS > Share Internet Connection requires Personal Web Sharing

Share Internet Connection requires Personal Web Sharing
Thread Tools
vdbuss
Fresh-Faced Recruit
Join Date: Feb 2008
Status: Offline
Reply With Quote
Feb 5, 2008, 12:10 PM
 
If I want to share my internet connection with another computer, and I want to be able to surf the Web on that computer, I need to turn on Personal Web Sharing service on my computer. Isn't that overkill? Indeed, I don't really want to start up a Web server on my computer. All that is needed is to allow HTTP traffic through the firewall on my computer. Turning on the Personal Web Sharing service indeed allows that, but it also starts up a Web server which I don't need. It appears not possible, at least not through the Sharing preferences, to just set the firewall options directly without turning on the whole service.

Is there a way to do this from the command line?
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Feb 5, 2008, 12:13 PM
 
I don't really get that either, vdbuss.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
TheMosco
Mac Elite
Join Date: Sep 2001
Location: MA, USA
Status: Offline
Reply With Quote
Feb 5, 2008, 12:55 PM
 
I am confused...

When I turn on "internet sharing" it creates natd, named, and bootpd processes. When I turn on "web sharing" it starts apache. But turning on "web sharing" doesn't start natd, named, and bootpd and vice versa.

Why don't I understand the question?
AXP
ΔΣΦ
     
analogika
Posting Junkie
Join Date: Feb 2005
Location: 888500128
Status: Offline
Reply With Quote
Feb 5, 2008, 08:53 PM
 
I use a Mac mini connected directly to the DSL modem as a wireless base station using Internet Sharing.

I do NOT need to turn on Personal Web Sharing for Internet Sharing to work.
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Feb 5, 2008, 09:46 PM
 
Perhaps it was fixed with Leopard, but at least in Tiger I remember a requirement to turn on web sharing in order to have internet sharing active.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
C.A.T.S. CEO
Professional Poster
Join Date: Nov 2004
Location: eating kernel
Status: Offline
Reply With Quote
Feb 5, 2008, 10:06 PM
 
I never had to turn web sharing for internet sharing to work in Tiger or Leopard.
Signature depreciated.
     
analogika
Posting Junkie
Join Date: Feb 2005
Location: 888500128
Status: Offline
Reply With Quote
Feb 5, 2008, 10:39 PM
 
Originally Posted by Big Mac View Post
Perhaps it was fixed with Leopard, but at least in Tiger I remember a requirement to turn on web sharing in order to have internet sharing active.
I'm CURRENTLY RUNNING the mini on tiger.

You remember wrong.
     
Brass
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Feb 5, 2008, 10:40 PM
 
Nope, internet sharing has always worked fine for me in both Tiger and Leopard with web sharing turned off.

I think you're problem has some other cause (or at least some other complication) other than this.
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Feb 5, 2008, 11:26 PM
 
You need to allow http through the firewall in Tiger, which turning on Web Sharing conveniently does. So, Web Sharing is not required but the open port it creates is. What you need to do is open the port in the firewall by creating a custom rule.
Vandelay Industries
     
Brass
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Feb 6, 2008, 12:11 AM
 
Originally Posted by Art Vandelay View Post
You need to allow http through the firewall in Tiger, which turning on Web Sharing conveniently does. So, Web Sharing is not required but the open port it creates is. What you need to do is open the port in the firewall by creating a custom rule.
heheh... that makes sense. I thought it must be due to some other configuration issue. I never use the Mac OS X firewall (all my machines are behind a NAT router/firewall) which is why I never had the problem.
     
vdbuss  (op)
Fresh-Faced Recruit
Join Date: Feb 2008
Status: Offline
Reply With Quote
Feb 6, 2008, 08:24 AM
 
All--

Thanks for the responses. Upfront I should say that I should have specified that this was a Tiger-specific question. On Leopard things are a bit different. This is probably why TheMosco couldn't make sense of my question; my apologies.

My question was clearly firewall-related and I thank Art Vandelay for putting me on the right track by telling me to create a custom rule for the firewall. Since I had never done this I'll explain here what I've done in detail, hopefully this will be informative to others.

So, we go to the Firewall settings, where everything is shut up for the moment. I click on "Personal Web Sharing" (not on the checkbox, just on the entry) and then choose "Edit...". The system tells me I cannot edit that entry, but it also gives me the interesting information that turning on this service would open up ports 80, 427, and 443 in the firewall. Now IANA (www.iana.org/assignments/port-numbers) tells me that port 80 is http, and 443 is https, so that certainly makes sense. I am less sure about that port 427; IANA tells me it is "svrloc" and I suppose here it is used to access the domain name server (named).

OK, now we know enough to do what I wanted from the outset. We choose "New..." to create a custom rule for the firewall. We fill in as follows:
- Port Name: Other
- TCP Port Numbers: 80, 427, 443
- UDP Port Numbers: <leave this blank>
- Description: internet sharing <you can choose your own description>

That's it! We can now share our internet connection without running Personal Web Sharing.

Best regards --Jan
( Last edited by vdbuss; Feb 6, 2008 at 04:14 PM. )
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 05:25 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,