View Computer's Important Network Information Using Python Last Updated : 11 Oct, 2020 Comments Improve Suggest changes 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 View Computer's Important Network Information Using Python 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 Python Script to Monitor Network Connection and saving into Log File In this article, we are going to see how to monitor the network connection and save the log file in Python. The basic ideology of this script is to give real-time information about if the system the script is being run on is connected to an internet connection or not, and save that information into 8 min read Scraping data in network traffic using Python In this article, we will learn how to scrap data in network traffic using Python. Modules Neededselenium: Selenium is a portable framework for controlling web browser.time: This module provides various time-related functions.json: This module is required to work with JSON data.browsermobproxy: This 5 min read Create a GUI to find the IP for Domain names using Python Prerequisite: Python GUI â tkinterIn this article, we are going to see how to find IP from Domain Names and bind it with GUI Application using Python. We will use iplookup module for looking up IP from Domain Names. It is a small module which accepts a single domain as a string, or multiple domains 2 min read Network Scanning using scapy module - Python Scapy is a library supported by both Python2 and Python3. It is used for interacting with the packets on the network. It has several functionalities through which we can easily forge and manipulate the packet. Through scapy module we can create different network tools like ARP Spoofer, Network Scann 3 min read Like