Internet connectivity may cause slows evaluations or cause unexpected problems (particularly in GUIs) when working in an environment with slow Internet or no Internet access at all. I know how to stop the Internet connectivity using the Preferences menu (Allow the Wolfram System to access the Internet) but I want to know if there a way to stop Internet connectivity programmatically.
1 Answer
$\begingroup$
$\endgroup$
3
You can use:
CurrentValue[$FrontEnd, "AllowDownloads"]=False;
to disable the "Allow the Wolfram System to access the internet" preference.
-
1$\begingroup$ It might be better to do this on the
$FrontEndSession
(if possible) $\endgroup$– b3m2a1Commented Jan 25, 2018 at 4:58 -
$\begingroup$ Do you know how your approach differs from $AllowInternet=False? $\endgroup$ Commented Jan 29, 2018 at 19:00
-
$\begingroup$ One bit of information I found is that to use SendMail both parameters need to be set to True. $\endgroup$ Commented Jan 30, 2018 at 22:33
$AllowInternet = False
? $\endgroup$CurrentValue[$FrontEnd, "AllowDownloads"]
, it will also set$AllowInternet
. The reverse it not true. $\endgroup$