How do I ping UE client from Java server?

I want to ping the UE client from my server in order to detect timeout. I am using Java for my server and I have no problem with C++ on Unreal side either. I found nothing on the internet about this and simply pinging the client’s IP does not work.