You can’t ping ports, as Ping is using ICMP which is an internet layer protocol that doesn’t have ports. Ports belong to the transport layer protocols like TCP and UDP.
However, you could use nmap to see whether ports are open or not
nmap -p 80 example.com
Edit:
As flokra mentioned, nmap is more than just a ping-for-ports-thingy. It’s the security auditers and hackers best friend and comes with tons of cool options. Check the doc for all possible flags.
Related Posts:
- ping response “Request timed out.” vs “Destination Host unreachable”
- Ping – Request timed out
- Is Ping a reliable way to check if a server is available?
- How can I set a short timeout with the ping command?
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- Istio Ingress resulting in “no healthy upstream”
- What is a LAMP stack?
- What is the difference between POST and PUT in HTTP?
- What and where are the stack and heap?
- What is a reverse shell?
- Why am I getting error for apple-touch-icon-precomposed.png
- How could I ping @here in Discord.py?
- What’s the syntax for mod in java
- STDERR? What is it? What are its common uses?
- Handling file renames in Git
- PermissionError: [Errno 13] in Python
- Why are there two ways to unstage a file in Git?
- ssh remote host identification has changed
- How to link to part of the same document in Markdown?
- What is {{.}} in mustache?
- How to split column into two in R using separate
- Python Key Error=0 – Can’t find Dict error in code
- What is a callback URL in relation to an API?
- In C++, what is wx.h?
- How to UPSERT (MERGE, INSERT … ON DUPLICATE UPDATE) in PostgreSQL?
- What is the difference between allFile and allMarkdownRemark in gatsby
- DynamoDB : The provided key element does not match the schema
- How do I run a single test using Jest?
- Why I am getting java.lang.AbstractMethodError errors?
- Mercurial: no ~/.hgrc file
- What is the iOS 8 System Font?
- PHP &$string – What does this mean?
- difference between ‘-webkit-box-shadow’ & ‘box-shadow’ in css
- Operand type clash: int is incompatible with date + The INSERT statement conflicted with the FOREIGN KEY constraint
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- java.io.IOException: Broken pipe
- Update Git branches from master
- declaring a priority_queue in c++ with a custom comparator
- How to interactively (visually) resolve conflicts in SourceTree / git
- How to get the selected item from a ComboBox in JavaFX?
- Downcasting in Java
- How do I get monitor resolution in Python?
- SQL array flattening: Why doesn’t CROSS JOIN UNNEST join every nested value with every row?
- Function to calculate R2 (R-squared) in R
- Is there an online application that automatically draws tree structures for phrases/sentences?
- Create new tmux session from inside a tmux session
- classic ASP error ‘80020009’ Exception occurred
- Disable Chrome pinch zoom for use in kiosk
- How to ‘minify’ Javascript code
- How to extract Month from date in R
- Receiving “message”:”CB-ACCESS-KEY header is required” when attempting to connect to coinbase pro api
- Missing files, DirectX SDK (d3dx9.lib, d3dx9.h)
- how to center form using bootstrap 4
- How to implement OnFragmentInteractionListener
- RGBA code for red color
- java array error “array required but int found”
- this: Cannot use this in static context
- Fail to create Android virtual Device, “No system image installed for this Target”
- How do I select text nodes with jQuery?
- Missing sudo password in Ansible
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- In Java, what is a shallow copy?
- conversion to inaccessible base class is not allowed [duplicate]
- A difference between statement and decision coverage
- How to draw a line with matplotlib?
- Android marshmallow : Galaxy Note 4 Screen Overlay Detected
- ifference between ibatis and mybatis
- How to install PyQt4 on Windows using pip?
- Example of realpath function in C
- Printing a 2D array in C
- wp_localize_script with mce_external_plugins in wordpress
- Send an email that contains a HTML and plain text part
- Contact Form 7: Redirecting on a condition? [closed]
- Deleting images in array
- How do I display the latest Flickr OAuth embedded image on the frontpage?
- Next Previous siblings child pages
- dbDelta with the character ;
- Posts2Posts plugin and wp user frontend connect programmatically
- Limiting the posts on the homepage to one taxonomy? [closed]
- add_image_size sizes not stored
- How to set environment variable in systemd service?
- Symlink not updating as expected when using an absolute with relative path
- How to include multiple domains in an spf TXT Record
- Physically locating the server
- Good tools that fit on a thumb drive [closed]
- How do you answer yes for yum install automatically
- All servers flooded by salt water, is it possible to recover data from multi-platter drives?
- How to check if I’m in screen session?
- How to zip/unzip files in Powershell?
- Cooling Server Closet – No A/C Is Possible
- Is it better practice to buy RAID disks individually vs. in bulk?
- What range of MAC addresses can I safely use for my virtual machines?
- What sysadmin things should every programmer know?
- Why do systems generally disable virtualization by default in BIOS settings?
- 10 servers to administer and I’m a history major [closed]
- Making `wget` not save the page
- How do I list all connected Salt Stack minions?
- How to get Apache2 to redirect to a subdirectory
- What does that mean: packages excluded due to repository priority protections