Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to get local ip in python

import socket
local_ip = socket.gethostbyname(socket.gethostname)
print(f"[+] Your Local IP is : {local_ip}")
Comment

get ip python

import re

f = open('C:/Users/Admin/Downloads/iplogs.txt', 'r') #Text file with many ip address
o = f.read()
ip1 = re.findall( r"d{1,3}.d{1,3}.d{1,3}.d{1,3}", o )
hosts = ip1
for host in hosts:
                    print(host)
Comment

how to get local ip in python

import socket
local_ip = socket.gethostbyname(socket.gethostname)
print(f"[+] Your Local IP is : {local_ip}")
Comment

get ip python

import re

f = open('C:/Users/Admin/Downloads/iplogs.txt', 'r') #Text file with many ip address
o = f.read()
ip1 = re.findall( r"d{1,3}.d{1,3}.d{1,3}.d{1,3}", o )
hosts = ip1
for host in hosts:
                    print(host)
Comment

PREVIOUS NEXT
Code Example
Python :: tensorflow matrix multiplication 
Python :: seaborn pink green color palette python 
Python :: primary key auto increment python django 
Python :: pandas description of dataframe 
Python :: How to join train and Test dataset in python 
Python :: python package for misspelled words 
Python :: python convert hex number to decimal 
Python :: assign a same value to 2 variables at once python 
Python :: join() python 
Python :: joins in pandas 
Python :: php echo shorthand 
Python :: python absolute path from projectr 
Python :: group by pandas count 
Python :: group multiple columns in pandas 
Python :: pandas reset index 
Python :: how to put song in pygame 
Python :: how to put legend outside pie plot in python 
Python :: get request body flask 
Python :: xml to json in python 
Python :: insert into string python more than one 
Python :: python iterate through objects attributes 
Python :: django model form 
Python :: python print format 
Python :: multiple lines input python 
Python :: bulk create django 
Python :: making gifs via python 
Python :: python Change the second item 
Python :: Read JSON files with automatic schema inference 
Python :: python check samplerate of mp3 
Python :: pickle load data 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =