getting & saving java server IP address!

The current server date: 09/20/2021 time: 01:04:58 am

The current client ip is: 3.239.58.199