Office for Mac applications provide a native app experience on the macOS platform. Each app is designed to work in a variety of scenarios, including states when no network access is available. When a machine is connected to a network, the applications automatically connect to a series of web-based services to provide enhanced functionality. On my second mail i showed the steps i did when using windows machine with exchange 2013 review version the steps i go till i reach the settings required the problem is with Microsoft outlook 2011 for Mac i can`t find the settings to enter my mx.tz.airtel.com & msstd:mx.tz.airtel.com. SecureFX for Windows, Mac, and Linux is a secure file transfer client with advanced features like site synchronization and automation to help network administrators and web designers streamline everyday tasks.
Active1 year, 6 months ago
Mac pro programs download free. I have several network locations set up on my laptop: Work, Home, etc. The work one(s) all have a proxy server set up, while the others don't. This works fine for OSX applications -- Safari, Mail, even Firefox and Thunderbird with the System Proxy plugin.
For terminal applications such as
git
, svn
, gem
, and curl
I have the following in my .bash_profile
:My question is this: is there some way to make the exported variable look up the value from my system's current location? I'd prefer it to be done dynamically (so if I change locations during a terminal session it will change), but I'd be happy with just one that set it when
.bash_profile
ran (meaning I'd have to start a new terminal session when I changed locations).Best programs for mac. Thanks!
Chealion22.6k77 gold badges6161 silver badges7171 bronze badges
![How How](/uploads/1/3/3/9/133916103/854633588.jpeg)
92777 gold badges1515 silver badges2626 bronze badges
5 Answers
What version of Mac OS X? I'm not positive the tool is included with Mac OS X 10.4 or earlier.
networksetup
should be what you're looking for, namely sudo networksetup -getwebproxy NAME_OF_NETWORK_DEVICE
(eg. sudo networksetup -getwebproxy Airport)The output comes out as so:
So you will need to convert the output to something usable.
A really crude example using awk a couple times (my awk skills are rather basic) would be:
Results in an output
ChealionChealionhttp://SERVER_ADDRESS:123
22.6k77 gold badges6161 silver badges7171 bronze badges
In the answer above, there is a comment from tlrobinson about how it doesn't include the port number.
You can do that by switching out HTTP Proxy Server with HTTP Proxy Port
I have also seen this done like this:
Community♦
stevesteve
Additionally this command may help to discover other proxy settings :
scutil --proxy
BriceBrice
The following seems to work, but I'm not sure how robust it is:
It doesn't work if your Location uses a
James A. RosenJames A. Rosenproxy.pac
instead of a hard-coded proxy location.92777 gold badges1515 silver badges2626 bronze badges
You could use the little tool I wrote, that sets the commonly used environment variables for proxies. Usage is straightforward:
- Compile it with xCode.
- Add:to your
.profile
,.bashrc
, or.bash_profile
.
After that you can use variables like
$HTTP_PROXY
, $http_proxy
, $HttpProxy
, etc. for all protocols (HTTP, FTP, SOCKS) including the $NO_PROXY
exceptions. This will work for most CLI tool and gets the settings from the OS X control panel.Mail Program On Mac Not Working
Simon Sheehan7,7961212 gold badges4545 silver badges6969 bronze badges
jan.vogtjan.vogt
Download Yahoo Mail Program
Not the answer you're looking for? Browse other questions tagged macosbashterminalproxy or ask your own question.
Active4 years, 8 months ago
Is there a way to make different Mac OS X applications use different SOCKS proxies? I've had no luck using
tsocks
with Mac OS X applications like Skype, Mail, or Chrome, always segfaults.I believe that sshuttle could handle Mail by mapping specific IP ranges through the proxy. Or maybe I could exclude all but the target ranges in Mac OS X's proxy settings.
IP ranges aren't well suited to proxying Skype or Chrome connections however. I understand that a peer-to-peer application like Skype might require a more complete solution, but Chrome should survive tsocks style library replacement nicely.
I could perhaps run multiple FireFoxes simultaneously with different proxy configurations, well that already happens with Tor, but It'd be lovely to find a broader solution.
Jeff BurdgesJeff Burdges
2 Answers
If you only need a browser solution, Chrome or Firefox will work. Use proxyswitchy for Chrome or foxyproxy for firefox and you can even use multiple proxies/direct connection based on domain name regex matches.
penchantpenchant
You can try to 'encapsulate' a new process to use a SOCKS proxy you want so the process will not know that you are using proxy - a tool to do it is tsocks. It'll also works with software that does not provide proxy configuration.
Álvaro JustenÁlvaro Justen