Tutorial :Telnet connection on iPhone



Question:

I'm just wondering...

I've downloaded this App called "Telnet Lite" for the iPhone where you can connect to your devices through Telnet. You just give up the IP address, server port, username & password. Works great.

Now I'm wondering how this can be done (in code) on the iPhone. Can someone post a sample code where you establish a connection? I've seen aSynckSocket but I still don't know how to connect and where to give up the username & password for the device...?

Thanks!


Solution:1

Choosing a socket framework/class/layer/whatever is only the first step. You need to review the Telnet RFCs -- there's a good list on the Wikipedia page) -- that will detail the protocol you'll need to implement on your (client) side.


Solution:2

Usually the way those clients work is to silently send up the username/password over the telnet connection when they detect the login prompt - then after that point you are shown what the server sends.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »