Telnet connection on iPhone - iphone

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!

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.

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.

Related

Pidgin IRC with ZNC and multiple networks

I am using pidgin and ZNC as an IRC Bouncer. In my ZNC I have configured two networks and I would like to use both with pidgin.
My problem is: I don't know how to choose the network when joining a new channel. I always connects me with the first network, but the second one is never taken.
Any suggestions?
Thank You!
Two things to look at here. Are you actually connected to the second network? If not, you need to set your password to "znc user name/znc network name:znc password" in pidgin. This will connect you to the second sever.
If you are already connected to both, it might be easier to add a channel in the znc web interface, and then do a "/join #foo" in that window in pidgin.
In most clients, you specify which ZNC network to connect to with your ZNC username. For example: username/network1 and username/network2.
In Pidgin, you have to include the ZNC username in the Password field as well. Set your IRC Username to username/network1 and your IRC Password to username/network1:password.
Source: http://wiki.znc.in/Pidgin

Is it required for AppStore to use SSL when sending Username/Password to a server

I am having a nightmare at the minute since Apple have axed OpenSSL (building a server for major the OSs).
I have a logon screen on my app that sends a user name and password to the server(C++ boost) that then will return a session key.
What should I do to send the password to the server and have apple accept my app? Is SSL the only way to do it. If so could someone please point me in the direction of a good guide or xcode project for SSL sockets on the iphone. There doesn't seem to be much at all on the net about it but almost all apps must do it.
no SSL isnt strictly required but but I wouldnt trust any app that does not use secure communication.

Connect to a mobile phone

I know how to make a TCP connection from a phone to a URL (server)
I know how to make an HTTP connection from a phone to a URL (server)
I do not know how to make a connection from a server to a phone
Is there a way to use the phone number of a phone to bridge from voice network to data network of the same provider (VERIZON or AT&T or ROGERS in Canada)?
In essence I wish to find a way to make a "phone call" from a server, over the Internet and over the local data network or WiFi, to a phone, without using any intermediaries
We are willing to pay for this info (optionally)
You can use Push Notification Systems for connecting to the phone. Ideally, you'd want to initiate a pull of data from the device when it receives a push notification from your server. This is because push notifications can handle only small amounts of data.
Another option for you, would be to open a socket on the client device and broadcast this address to your server during startup. Later, your server can directly connect to the listening port on your device, provided the app is still running.
You could send a push message to the phone and let the phone establish the connection.
Just a rough short sketch, maybe this will help you. If I'd had to solve that problem
i would use androids Cloud2Device messaging to tell the phone to connect to a certain
server which you specify in the message from the cloud. Then the phone connects to your command server and you can tell over the connection what the phone should do.
This way you dont have to execute a server on the phone.
Look here
My Ideas
1.Have a look at http://developer.android.com/reference/android/net/sip/package-summary.html
2.Use C2DM(cloud to device message),It will send the message to your app
3.Use XMPP chat client from the server you can send the message to android app after receiving message your app can call(it depends on your logic)
There is no universal one-to-one mapping between cellular phone numbers and IP addresses (e.g. the user could have driven out of cell tower range to a coffee shop with wifi). So this is impossible to do directly.
The services that do seem to do this require a running app on the mobile device to cooperate by periodically connecting to some centralized database using its current IP address, which some server can record in its database for you to do a lookup when want to try to connect to that mobile device. Google "SIP service providers".

Inapp email stuck in outbox using MFMailCompose

I'm using the MFMailCompose method to do an inApp email and everything works fine. I sent the app out to have it tested and here is the response from my beta tester.
My phone is a 3gs 32Gb, OS3.1.3
Tested at home over wifi, send works with no problems, tested twice.
Tested again over 3g, send still does not occur until I open my mail box, error still pops up.
Has anyone come across this? His problem seems to be only when trying to send via 3g. It works for me but I'm with a difference carrier. It has to be a settings, but we checked everything. Has anyone come across this?
If it works over Wi-Fi and not over 3G, then it's most likely because his device is set to send mail through an outgoing mail server (SMTP server) that restricts connections based on the network you are connected to.
For example, if you have broadband service through FooBarNet, they might tell you to use an outgoing mail server smtp.foobar.net. If you connect to that network while you're at home, the server will allow you to send mail. But if you try to connect to it from another network (e.g., your cellular phone's data network) it will reject the connection, assuming you are trying to hijack its mail server to send spam.
In other words, this has nothing to do with your app. You can verify this by using the Mail app to send mail directly.

How can I send email over gprs?

How can I send email over gprs from a mobile device under Windows Mobile 6.x to a server (connected to ... whatever, if email can be sent/received).
You need to connect to an SMTP server. Typically the GPRS provider will have one you can use. If you want to be truly independent, then set up your own SMTP server, or use somebody else's. Watch out, because some GPRS providers will block port 25, to reduce spam.
One option is to set up some kind of proxy. Say a php page on your web server that your app connects to, and sends the e-mail for you. Just make sure it's secure.
Have a look at the PocketOutlook namespace and specifically to the EmailMessage.Send method.