Telnet
Posted: Mon Feb 17, 2020 11:13 pm
I have a problem to establish a telnet session in livecode. I have to connect to a Industrial Machine, that works as a Telnet Server, without Login or Password. I can connect to this machine on a telnet session in Windows 10 and win 7. After connecting the machine answers only with the prompt (>)
I tried this, and a lot of other codesnipets I found on this forum- alwas the same effect: i get no result on open socket! I also get no error message. The Result is empty.
Have anyone an Idea?
here the Code i tried:
put "IP:Port" into mySock
open socket to mySock
put the result into rslt
if rslt is not empty then
write "helo" to socket mySock
read from socket mySock with msg "msgReceived"
else
beep
answer error rslt
-- doesn't matter if socket is already closed
close socket mySock
end if
The answer statement displaed an empty Message Box.
IP Adresse tw durch IP:Port ersetzt weil sonst post nicht möglich!
THX for your help
I tried this, and a lot of other codesnipets I found on this forum- alwas the same effect: i get no result on open socket! I also get no error message. The Result is empty.
Have anyone an Idea?
here the Code i tried:
Code: Select all
open socket to mySock
put the result into rslt
if rslt is not empty then
write "helo" to socket mySock
read from socket mySock with msg "msgReceived"
else
beep
answer error rslt
-- doesn't matter if socket is already closed
close socket mySock
end if
Code: Select all
IP Adresse tw durch IP:Port ersetzt weil sonst post nicht möglich!
THX for your help