473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

get remote machine datetime

DB
Hi All,

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

Thanks n Regards,
Deepak


Nov 19 '05 #1
7 1453
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.
Nov 19 '05 #2
"DB" <de**********@persistent.co.in> wrote in
news:#A**************@tk2msftngp13.phx.gbl:

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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #3
DB
Hi M.A.,

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

Regards,
Deepak

"Maury" <ma*********************@gmail.com> wrote in message
news:VC*******************@twister1.libero.it...
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.

Nov 19 '05 #4
DB
i got the solution.........
fire net time \\machinename command in command prompt.

Regards,
DB
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
"DB" <de**********@persistent.co.in> wrote in
news:#A**************@tk2msftngp13.phx.gbl:

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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 19 '05 #5
There's a security hazard waiting to happen.

-- Sean M

"DB" <de**********@persistent.co.in> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
i got the solution.........
fire net time \\machinename command in command prompt.

Regards,
DB
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
"DB" <de**********@persistent.co.in> wrote in
news:#A**************@tk2msftngp13.phx.gbl:

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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 19 '05 #6
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" <ta******@hotmail.com> wrote in message
news:O0****************@TK2MSFTNGP10.phx.gbl...
There's a security hazard waiting to happen.

-- Sean M

"DB" <de**********@persistent.co.in> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
i got the solution.........
fire net time \\machinename command in command prompt.

Regards,
DB
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
> "DB" <de**********@persistent.co.in> wrote in
> news:#A**************@tk2msftngp13.phx.gbl:
>
> 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.
>
> --
> Lucas Tam (RE********@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/



Nov 19 '05 #7
"DB" <de**********@persistent.co.in> wrote in news:#X7A5p#eFHA.1680
@TK2MSFTNGP09.phx.gbl:
i got the solution.........
fire net time \\machinename command in command prompt.


That won't exactly work over the internet : )

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
4
by: Rohith | last post by:
I need to import dlls that are present in the remote machine. Its a dll written in C that exposes methods. I want to import that dll in my C# application. But that dll is not present in the local...
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
7
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
4
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be...
0
by: DR | last post by:
How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine. I get this error when i try to connect to remote machien with visual studio: ...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.