get remote machine datetime

  • Thread starter Thread starter DB
  • Start date Start date
D

DB

Hi All,

Is there any way to get remote machine datetime using asp.net application?
Help would be appreciative.

Thanks n Regards,
Deepak
 
Is there any way to get remote machine datetime using asp.net application?
Help would be appreciative.

I used ntp protocol in an internet scenario
but remote machine must provide you this service;
in this case you can open a tcp connection (port 123)
and retrieve date and time.
Do you like some code?

Bye

M.A.
 
f> Hi All,
Is there any way to get remote machine datetime using asp.net
application? Help would be appreciative.


You can use Javascript to get the current datetime... and post the time
back to the server.

Of course during the post, there will be a slight delay.
 
Hi M.A.,

FYI, We are using SNTP protocol.
Is there a dos command which will return remote machine date and time?

Regards,
Deepak
 
i got the solution.........
fire net time \\machinename command in command prompt.

Regards,
DB
 
There's a security hazard waiting to happen.

-- Sean M

DB said:
i got the solution.........
fire net time \\machinename command in command prompt.

Regards,
DB
 
plse go in details.
I dont want to set datetime of remote machine. I just want to get datetime
of a remote machine. For getting datetime frm remote m/c, is there any
security issue?

Regards,
DB
Sean M said:
There's a security hazard waiting to happen.

-- Sean M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top