You have much more work to do if you want "response time" of
a port.
That concept does not really apply.
A regular "ping" always uses the echo port, port 7. Use the
DOS/Linux/OS ping command for this.
If you want "response time" on some other port, then you must
write and run an echo program on each TARGET server.
Then you can add to my code to send a small packet and
measure the echo time. You will need mad java skilz to do so.
But, since you will have to write the target echo routine
(unless you are hacking), you can probably use cfhttp to do the
timed data swap -- which would be a lot easier.