Page 1 of 1

Asking for NIS with TCP-IP component

Posted: Sun Nov 02, 2008 6:15 pm
by MJU
I'm trying to ask back information from a internet time server with my Eblocks.
I have tried several possibilities but it doesn't seem to go as planned.

If I doe a telenet : 129.6.15.28 at port 13 on my CMD it returns a value for the actual internet time.
But how can I do this with the TCP-IP component?
Use UDP or TCP?

I need to set destination and port, but by sending this I don't get a reply.

What is the right way to simulate a "telnet 129.6.15.28 13" like from within CMD on a Windows PC?

Thanks

Re: Asking for NIS with TCP-IP component

Posted: Mon Nov 03, 2008 11:11 am
by Steve
I think you need to send this telnet message out using the IP protocol layer.

Re: Asking for NIST with TCP-IP component

Posted: Tue Nov 04, 2008 1:11 pm
by MJU
Thank you Steve.

I found out that I need to use TCP (port 13)
But for some reason I don't get it to work.

All I do (in telnet) is connect to the server 129.6.15.28 port 13, the NIST server (in the title I wrote NIS), this server replys with a bunch of data and closes the connection.
But I don't seem to get it working on my Eblocks...