NTP Client - ESP01S

I want to read the server PC time from a ESP01S module as in the image. The server LAN cable is connected to a Wireless N ADSL2+ Router.

Can somebody give a reference link how to get the PC time from ESP module..!!

Thanks

http://werner.rothschopf.net/202011_arduino_esp8266_ntp_en.htm

Thanks.
In that example server definition is like this.
#define MY_NTP_SERVER "at.pool.ntp.org"

Can I place my server IP there like this? Because I have only IP address of the Server PC.
#define MY_NTP_SERVER "192.168.10.1"

Don't know.
Is your PC set up as an NTP server?
Why don't you try yourself.

Why don't you get time directly off the Internet.
Or add a RTC module to your ESP if you power the ESP off in a place with no internet near.
Leo..

The PC is just a PC (Not setup as NTP Server). Also both router & PC does not have internet.

I just want to read PC time with ESP01.

Google could tell you how to set up the PC as NTP server.
It involves editing the registry.
It seems easier to add a RealTimeClock to the ESP.
The same way a PC keeps time (with a RTC and battery backup).
Leo..