Re: How to establish connection to TCP port 13 on a remote server from within VBA?



MLH wrote:
Although I appreciate the work-around suggesting, I'm looking for an
actual technique here. I want to establish the connection from within
VBA - controlling everything from within code.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Hi
Use the time server to keep your PC clock in time, and just read that from
Access.
See freeware at http://www.snapfiles.com/freeware/network/fwtimesync.html


If you are looking for examples on how to use the WinSock library under VB then there are many examples on the net. Port 13 has very limited usefulness as it is reserved (as a
"well-known port) for the "daytime" protocol defined by the RFC found here: http://www.faqs.org/rfcs/rfc867.html


For an accurate time source you'll want to use a modern protocol like NTP or Simple NTP (SNTP).

For a WinSock example see:

http://www.vbip.com/winsock-api/default.asp

--
'---------------
'John Mishefske
'---------------
.



Relevant Pages

  • Re: NTP time service not syncing
    ... The newest version of NTP. ... The time server is listening on UDP port 123. ... the simple network time protocol Version-4. ...
    (microsoft.public.windows.server.general)
  • Work anywhere time synch
    ... time server and this works ok most of the time. ... networks) I can't get through port 123 and talk to the NTP server. ...
    (comp.protocols.time.ntp)
  • Re: xntp both serve and client
    ... we only use NTP as a client. ... ntpd binds UDP port 123 on all interfaces. ... The port scan shows that ntpd is listening on 123/UDP. ... If you tell ntpd to poll certain servers that is what it will do. ...
    (comp.protocols.time.ntp)
  • Re: sober resurfacing
    ... Sober's previous variants access NTP on port 37, so blocking port 123 ... As long as the new variant follows the same ...
    (Focus-Microsoft)
  • Re: NTP with 2 Routers
    ... The NTP requests go out port 123 via the WAN port, ... Since the WAN port is not connected to anything in your ...
    (alt.internet.wireless)