Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mavericks Internet Sharing requiring restarts

Hey all,


I have been using Internet Sharing on my mid-2011 Macbook Air to provide internet to my iPhone and iPad (through ethernet) for the past few months.While I was running the latest incarnation of Mountain Lion, I often had difficulties with the network being available, but no internet connection being made. I often solved this problem by turning Sharing off and back on again.

Since my upgrade to Mavericks, I have experienced a different problem. I will turn on Internet Sharing and for less than half a second the sharing symbol (the grey wifi symbol with an arrow in it) will appear, before reverting to normal (normal being that the computer is searching for wifi signals). Even though Internet Sharing is 'on', neither of my iOS devices can detect the signal, and there is no indication that the macbook is even broadcasting it.

Often I will need to restart the computer 3-4 times before it works as intended.


Is there anything that I can do to minimise or eliminate this problem?

MacBook Air, OS X Mavericks (10.9)

Posted on Oct 25, 2013 10:41 PM

Reply
54 replies

Feb 6, 2014 3:09 AM in response to Mikeghali

I've just read through this thread and the initial fix was really helpful as is the command posted to kill the process too!



I've been trying to find a way of reliably enabling and disabling internet sharing via the command line or apple script and recently found this:


to start: sudo launchctl load /System/Library/LaunchDaemons/com.apple.InternetSharing.plist


and to stop: sudo launchctl unload /System/Library/LaunchDaemons/com.apple.InternetSharing.plist


Seems to work for me really well 🙂 Just thought I'd share.

Feb 17, 2014 10:47 AM in response to bolste

bolste wrote:


To quickly resolve this issue if it occurs again, I wrote a script containing the following line which automates searching the process id of bootpd and killing it:


sudo lsof -i udp:67 | grep bootpd |awk '{ print $2 }'| while read pid; do echo killing $pid; sudo kill -9 $pid&&echo "successfull..."; done


This worked perfectly for me too! Thank you!

Feb 19, 2014 7:42 PM in response to bolste

sudo lsof -i udp:67 | grep bootpd |awk '{ print $2 }'| while read pid; do echo killing $pid; sudo kill -9 $pid&&echo "successfull..."; done


Should I type the script in Terminal?


Back story..

The wireless sharing from my imac has been used by a variety of apple devices and HP printers without any issues in the past.

After installing Mavericks it initially seemed to require being turned off and back on each time, but it would only share wifi with the macbook and no longer connect to the printer.


Today after a few weeks it seems to no longer turn on at all.


Upon turning "internet sharing" on, the wifi symbol in the menu bar begins to search for a connection and then after a few seconds it blinks for a split second with the grey cone arrow symbol before continuing its search...


I believe i've tried all other sugestions in this thread, but this one seems outside my range of aqcuaintance.

console output?

Feb 20, 2014 5:42 AM in response to Scriptron

Just tried that and this was the response:


WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.


To proceed, enter your password, or type Ctrl-C to abort.


Password:


Typing does not show anything... so I type Ctrl-C and this appeares:


sudo: 1 incorrect password attempt


wireless:~ miarka$ password

-bash: password: command not found

wireless:~ miarka$



BTW "password" represents where my password reappears.

Feb 20, 2014 6:25 AM in response to Mr.Bokenham

I've got it, thanks 🙂

So it was still not accepting my password telling me it's invalid and that it will be "reported"...


But I remembered that I have three user profiles on this computer.

(originally two but since photoshop stopped opening after mavericks install, I had to create a third)


So in the administrative profile, I opened Terminal and got this response (after copy pasting and pasword):

killing 38131

successfull...


Wifi sharing seems to be back on🙂.

But I have noticed that the username in Terminal does not match the current username of this profile. could this cause problems? I remember changing it about 2 years ago..

Apr 18, 2014 6:35 AM in response to Mikeghali

Hey all,


Same problem (sharing icon instead of regular wifi icon appears only for a split second, sharing starts only to stop immediately).


1) Re LBJ-UK : I did find an old keychain item about my 'en1' interface, got rid of that - no change.

2) Re bolste : indeed, there was someone else using UDP and stuff (whatever the heck that means) : no less than launchd/bootps, PID n°1 ! A hard kill with your well-written script did not do the trick though. But a regular, by-the-book launchctl unload with option w did the job. Now lsof -i udp:67 displays two UDP67 users : bootpd and InternetS (which I guess to be InternetSharing !), and it works.


To sum it up : do this !


launchctl unload -w /System/Library/LaunchDaemons/bootps.plist


PS : maybe deleting the old keychain item helped, too.

Mavericks Internet Sharing requiring restarts

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.