cancel
Showing results for 
Search instead for 
Did you mean: 
dreth
Level 7
Report Inappropriate Content
Message 1 of 7

need command like tcping

Jump to solution

Hi all

I need something which works similiar like tcping.

I need to run constant ping to specific port. So tbh i need to be sending constantly SYN packets to specific port and if server responds with SYN-ACK.

More or less this can be done with tracereroute <ip> -T -p 443 
But only i want to be able to receive anser like from normal ping like

ping -p 443 TCP

1 Solution

Accepted Solutions
fw_mon
Level 9
Report Inappropriate Content
Message 6 of 7

Re: need command like tcping

Jump to solution

Hi,

you can try "nc -vz host port" wrapped in a bash/perl script, most simple version:

while true; do nc -vz host port; sleep 1; done

View solution in original post

6 Replies

Re: need command like tcping

Jump to solution

Hi,

Do you really need the SYN packets or does telnet maybe also work for you?

Highlighted
dreth
Level 7
Report Inappropriate Content
Message 3 of 7

Re: need command like tcping

Jump to solution

I need sometyhing which will send SYN every few seconds till i stop it. Thats the point 😕

Reliable Contributor rmetzger
Reliable Contributor
Report Inappropriate Content
Message 4 of 7

Re: need command like tcping

Jump to solution

@drethwrote:

Hi all

I need something which works similiar like tcping.

I need to run constant ping to specific port. So tbh i need to be sending constantly SYN packets to specific port and if server responds with SYN-ACK.

More or less this can be done with tracereroute <ip> -T -p 443 
But only i want to be able to receive anser like from normal ping like

ping -p 443 TCP


Hi dreth,

Consider using PsPing by

PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

https://docs.microsoft.com/en-us/sysinternals/downloads/psping

psping -i 10 -t <ip addr>:443

This would ping every 10 seconds, using TCP, to the IP Addr on Port 443. It will continue to ping until Ctrl-C or Ctrl-Break entered.

Full details and options:

psping -? t

 

Hope this works for you.

Thanks,

Ron Metzger

Thanks,
Ron Metzger

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
dreth
Level 7
Report Inappropriate Content
Message 5 of 7

Re: need command like tcping

Jump to solution

But this solution is for windows machines. I need this for mcafee webgateways

fw_mon
Level 9
Report Inappropriate Content
Message 6 of 7

Re: need command like tcping

Jump to solution

Hi,

you can try "nc -vz host port" wrapped in a bash/perl script, most simple version:

while true; do nc -vz host port; sleep 1; done

View solution in original post

dreth
Level 7
Report Inappropriate Content
Message 7 of 7

Re: need command like tcping

Jump to solution

Thanks!
This one will be enough for me!:)

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community