Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ping a port linux

ping ip -p port
Comment

linux ping a port

# Use the below command in your terminal
# No requirments are needed
(echo >/dev/tcp/{host}/{port}) &>/dev/null && echo "open" || echo "close"

# An example below
(echo >/dev/tcp/10.20.20.21/27017) &>/dev/null && echo "open" || echo "close"

# if open then it will return "open"
# if closed then it will return "close"
# if you can't connect to it then it will freeze, use ctrl+c
Comment

ping port linux

telnet IP PORT
Comment

PREVIOUS NEXT
Code Example
Shell :: bash list process 
Shell :: github push to repository 
Shell :: restart debian server from ssh 
Shell :: how to remove a repository 
Shell :: npm global package not found 
Shell :: wsl2 config file 
Shell :: pkg_resources.DistributionNotFound: 
Shell :: app:connectedDebugAndroidTest fail adb 
Shell :: delete .lastupdated maven 
Shell :: bcmatch install 
Shell :: sol-merger script usage 
Shell :: mikrotik enable ping from wan 
Shell :: django test env 
Shell :: find newest modified file recursively 
Shell :: Filtering Listing Output 
Shell :: Hands-on GitHub Actions: Implement CI/CD with GitHub Action Workflows for Your Applications.pdf 
Shell :: rsync kill 
Shell :: how to clear a project from powershell recent list? 
Shell :: usedapp install command 
Shell :: ros2 build from source 
Shell :: How to create or generate secret key for django using UUID 
Shell :: ffmpeg audio with echo 
Shell :: rm a var of $PATH ubuntu 
Shell :: pacman install fzf 
Shell :: timotei felvinczi githbun 
Shell :: image to docker file online 
Shell :: Create bash BACKUP 
Shell :: linux verify package install on remote system script 
Shell :: GIT: borrar repositorio local git 
Shell :: thunderbird refresh emails shortcut 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =