Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

check remote port is open or not using python


def port_check(HOST):
   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   try:
      s.connect((HOST, int(22)))
      s.shutdown(2)
      return True
   except:
      return False
Comment

PREVIOUS NEXT
Code Example
Python :: cut rows dataframe 
Python :: pandas read csv skip rows 
Python :: import get object 
Python :: python copy 
Python :: print list in python 
Python :: keep only one duplicate in pandas 
Python :: count characters in string python 
Python :: change index of dataframe with list 
Python :: Pyspark Aggregation on multiple columns 
Python :: calculate percentile pandas dataframe 
Python :: python foreach list 
Python :: pyspark rdd filter 
Python :: reshape wide to long in pandas 
Python :: convert ndarray to csr_matrix 
Python :: get the length of an array python 
Python :: python diagonal sum 
Python :: get token from request django 
Python :: pd.dataframe initial columns 
Python :: how to count number of columns in dataframe python 
Python :: query with condition django 
Python :: django timezone settings 
Python :: How to wait a page is loaded in Python Selenium 
Python :: python function get number of arguments 
Python :: python while loop 
Python :: os.mkdir exceptions 
Python :: extract one column from dataframe python 
Python :: how to get confusion matrix in python 
Python :: round off float to 2 decimal places in python 
Python :: how to add item to a list python 
Python :: plot pil image colab 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =