This library enables you to use a telnet wireless terminal on an ESP8266 + Arduino IDE, it also serves as setup for ArduinoOTA, making debugging/uploading wireless.
https://www.arduino.cc/en/Guide/Libraries
Go to Example or:
1 - #include <Telnet.h>
2 - call Telnet.begin("your-hostname");
on setup() But after WiFi.begin();
3 - put Telnet.handle();
on loop()
4 - call Telnet.printf();
to write or Telnet.available();
+ Telnet.read();
to read the values from terminal
Be Aware: It takes 6ms+ to read from terminal
Run Terminal.cmd, it's configured to answer to host "Telnet-Example", but any phrase on Telnet.begin("your-hostname");
will work, and also the IP address that is given on serial terminal, but since it changes form one network to another i prefer a hostname.
To configure manually use this guide