Indeed you would have to introduce telnet to utilize it on your macintosh. You can likewise have a go at utilizing an elective device, that comes pre-introduced on macOS machines. It is called netcat and you can do the accompanying:
nc - vz localhost 8000
In the event that the order above isn't adequate, you can introduce telnet on your macintosh by following the instructional exercise that can be seen as here:
https://osxdaily.com/2018/07/18/get-telnet-macos/