$NetworkConnected

$NetworkConnected

gives True if your computer has a network interface that is active and capable of sending and receiving IP traffic, and False otherwise.

Details

  • $NetworkConnected gives True if your computer has an Ethernet, Wi-Fi, etc. connection that is active. It does not give True if your computer only has a Bluetooth connection without IP support.
  • $NetworkConnected also works in virtual machines.

Examples

Basic Examples  (1)

Check if your computer is connected to any network:

After disconnecting from all networks:

Wolfram Research (2017), $NetworkConnected, Wolfram Language function, https://reference.wolfram.com/language/ref/$NetworkConnected.html.

Text

Wolfram Research (2017), $NetworkConnected, Wolfram Language function, https://reference.wolfram.com/language/ref/$NetworkConnected.html.

CMS

Wolfram Language. 2017. "$NetworkConnected." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$NetworkConnected.html.

APA

Wolfram Language. (2017). $NetworkConnected. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$NetworkConnected.html

BibTeX

@misc{reference.wolfram_2024_$networkconnected, author="Wolfram Research", title="{$NetworkConnected}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$NetworkConnected.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$networkconnected, organization={Wolfram Research}, title={$NetworkConnected}, year={2017}, url={https://reference.wolfram.com/language/ref/$NetworkConnected.html}, note=[Accessed: 22-December-2024 ]}