Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Henrique Holtz
Henrique Holtz

Posted on

     

How to do "ping" with a specific target-port

In this article we'll shortly see how to doping against a host or IP but pointing a specific port.

It can be very useful to see if your container/application is alive, for example.


Using Powershell (windows)

We can use theTest-NetConnection function passing the port as a parameter, for example:

 Test-NetConnection <host-or-ip> -port <target-port>
Enter fullscreen modeExit fullscreen mode

UsingcURL

WithcURL is untill simplier, just typecurl <host-or-ip>:<target-port>. Example:

curl 127.0.0.1:1433
Enter fullscreen modeExit fullscreen mode

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
jlcfly profile image
Joe Clark
24 years professional development in many languages; full-stack; specializing in healthcare IT
  • Location
    Washington State
  • Work
    Director of IS
  • Joined

If you have telnet installed,telnet <host-or-ip> <port>

CollapseExpand
 
vladignatyev profile image
Vladimir Ignatev
Whatever I do is making a program.

Notice the netcat too:

nc -zv [target-ip] [port]

Not sure if it's available on Windows

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Brazil
  • Work
    Wake Commerce (former TrayCorp)
  • Joined

More fromHenrique Holtz

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp