I have a telnet server running on an MCBSTM32F400 and can connect to it via Putty. If I try to connect with an Python client, I won't get a connection.
Python code:
from telnetlib import Telnet with Telnet('10.0.0.61', 23, 10.0) as tn: tn.write(b"a simple command\n")
I can set a brakpoint in my code in a function called "netTELNETs_ProcessMessage". It will be called if I connect with Putty but not with Python.
Thanks in advance for you time, Marco
So the problem must occur before that point, then - mustn't it?
Well, I guess so. Is there a way to debug the network lib?
Have you used something like Wireshark to see what's actually happening?
Does your Python work for connecting to any other Telnet server?
Hi Andrew,
Have you used something like Wireshark to see what's actually happening? I can log the communication with wireshark. But I am no expert with network protocols. I can see that the telnet server is responding to tcp messages, after that messages marked as "telnet" appear.
Does your Python work for connecting to any other Telnet server? I connected to 'mapscii.me' and got a response.
Thanks for helping, Marco