Mohd Zam,
I would also check your firewall and DLP (XDR) solutions on the client , these might block Java / or unauthroized connections.
Software like Sentinel One , Defender etc, might affect the connections aswell there they would allow a simple ping to complete.
------------------------------
Marius le Roux theIBMiGuy
Owner , IBM i Modernization and Integration Consultant
MLR Consulting
------------------------------