View Computer's Important Network Information Using Python Last Updated : 11 Oct, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report While working in a network, we do some troubleshooting with the network or Internet problem. This time we need to check your own system network connection information. We can find the network connection in the Control Panel in Windows. The best way to find this information we can use ipconfig command in CMD. When you use ipconfig /all then you can get enough information to resolve your network problem. Examples: Method 1: We will use the subprocess module to interact with cmd and to retrieve information into your python ide. We can read the cmd command through the subprocess module. Approach: import moduleGet the output for the command "'ipconfig','/all' " using subprocess.check_output()Now get the Split the string and arrange your data with your own needs. Python3 # import module import subprocess # Traverse the ipconfig information data = subprocess.check_output(['ipconfig','/all']).decode('utf-8').split('\n') # Arrange the bytes data for item in data: print(item.split('\r')[:-1]) Output: Method 2: Ifcfg module is a cross-platform (Windows/Unix) library for parsing ifconfig and ipconfig output in Python. It is useful for pulling information such as IP, Netmask, MAC Address, Hostname, etc. Installation: pip install ifcfg Implementation: Python3 import ifcfg print(ifcfg.interfaces()) Output: Comment More infoAdvertise with us Next Article Creating a Path Graph Using Networkx in Python K kumar_satyam Follow Improve Article Tags : Python python-utility Practice Tags : python Similar Reads Complete Graph using Networkx in Python A complete graph also called a Full Graph it is a graph that has n vertices where the degree of each vertex is n-1. In other words, each vertex is connected with every other vertex. Example: Complete Graph with 6 edges: C_G6 Properties of Complete Graph: The degree of each vertex is n-1.The total nu 3 min read Python | Visualize graphs generated in NetworkX using Matplotlib Prerequisites: Generating Graph using Network X, Matplotlib IntroIn this article, we will be discussing how to plot a graph generated by NetworkX in Python using Matplotlib. NetworkX is not a graph visualizing package but basic drawing with Matplotlib is included in the software package. Step 1 : Im 3 min read Creating a Path Graph Using Networkx in Python A path graph is a connected graph denoted by Pn if it contains n nodes. Nodes are connected in form of a straight line in a path graph. Here we will discuss how networkx module can be used to generate one using its inbuilt path_graph() function. Properties of Path Graph:The number of nodes in a path 2 min read Introduction to Social Networks using NetworkX in Python Prerequisite - Python Basics Ever wondered how the most popular social networking site Facebook works? How we are connected with friends using just Facebook? So, Facebook and other social networking sites work on a methodology called social networks. Social networking is used in mostly all social m 4 min read Network Centrality Measures in a Graph using Networkx | Python Centrality Measures allows us to pinpoint the most important nodes of a Graph. This essentially helps us to identify : Influential nodes in a Social Network. Nodes that disseminate information to many nodes Hubs in a transportation network Important pages in the Web Nodes that prevent the Network fr 6 min read How to find available WiFi networks using Python? WiFi (Wireless Fidelity) is a wireless technology that allows devices such as computers (laptops and desktops), mobile devices (smartphones and wearables), and other equipment (printers and video cameras) to interface with the Internet. We can find out the names of the WiFi names with the help of Py 2 min read Like