Solved

How to set up to automatically disable Wireless whenever the Macbook connects to the wired?

Posted on 2014-10-14
2
191 Views
Last Modified: 2014-10-31
While my MacBook connects to my network cable through the Thunderbolt, I found the WiFi connection is still on. Is there a way to automatically disable the WiFi whenever the wired connection is connected?
Also, when both wired and wireless are connected, which connection is utilized? Is it the wired or the wireless, or both in the end?
0
Comment
Question by:Castlewood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Assisted Solution

by:Joshua Grantom
Joshua Grantom earned 250 total points
ID: 40380518
You can change the service order of networks under System Preferences > Network. Then hit the gear icon in the bottom left.

If you have Ethernet above Airport, if a wired connection is available, it will use that network before the wireless.

No need to disable wireless
0
 
LVL 29

Accepted Solution

by:
serialband earned 250 total points
ID: 40380988
Here's a site with a launchdaemon that calls a script to do that.

http://www.heatxsink.com/entry/turn-off-airport-when-ethernet-is-plugged-in-on-osx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.heatxsink.jackedin</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Library/Scripts/heatxsink/jackedin.sh</string>
        </array>
        <key>StandardOutPath</key>
        <string>/var/log/jackedin.log</string>
        <key>StandardErrorPath</key>
        <string>/var/log/jackedin.log</string>
        <key>Debug</key>
        <true/>
        <key>WatchPaths</key>
        <array>
        <string>/Library/Preferences/SystemConfiguration</string>
        </array>
    </dict>
</plist>

Open in new window


#!/bin/sh
ETHERNET_INTERFACE="en0"
AIRPORT_INTERFACE="en1"
DETECT_INET=`ifconfig $ETHERNET_INTERFACE | grep inet6 | tr -d '\t' | cut -d ' ' -f 1 | tr -d '\n'`

if [ "$DETECT_INET" = "inet6" ] ; then
        /usr/sbin/networksetup -setairportpower $AIRPORT_INTERFACE off
        echo "Wired ethernet detected, turning off Airport."
        exit 0
else
        /usr/sbin/networksetup -setairportpower $AIRPORT_INTERFACE on
        echo "No wired ethernet, turning on Airport."
        exit 1
fi

Open in new window

http://hints.macworld.com/article.php?story=20100927161027611

You can also use a 3rd party app to detect
http://www.symonds.id.au/marcopolo/
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the major release of Apple's 7th addition to the Mac OS X family, Mac OS X 10.6 Snow Leopard, there are a lot of enhancements which have arrived with this new OS X upgrade. With the number of enhancements and refinements I can provide deta…
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question