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.
$\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$ – b3m2a1 Jan 25 '18 at 4:58 -
$\begingroup$ Do you know how your approach differs from $AllowInternet=False? $\endgroup$ – Ariel Sepulveda Jan 29 '18 at 19:00
-
$\begingroup$ One bit of information I found is that to use SendMail both parameters need to be set to True. $\endgroup$ – Ariel Sepulveda Jan 30 '18 at 22:33
$AllowInternet = False
? $\endgroup$ – Szabolcs Jan 25 '18 at 0:05CurrentValue[$FrontEnd, "AllowDownloads"]
, it will also set$AllowInternet
. The reverse it not true. $\endgroup$ – Szabolcs Jan 29 '18 at 17:56