Hello, im needing to connect to a web controller by TCP-IP which have an dyndns with user and password.
I need to connect to it and send commands to control it.
Can someone help me with it? Thanks
Seller tell me that controller dont have authentication, i must connect by tcp/ip and send commands directly, i can use putty app and works fine localy.
In this app that im developing i must connect with authentication because i use dyndns to connect of another place. Router connect directly to the controller.
Any idea to send commands with httpjob or similar? Thanks!
When you connect to the server using Putty, do you receive some kind of cursor to know when the server is ready to begin talking?
If so, check if you receive this character when you connect.
I asked first if you receive a cursor (sometimes a ">", or "-" or "$") once you connect locally to the device. If so, when you try to connect remotely, using an android device, you have to check if you receive the same character.
Please are you using jkSSH2 ? I ask you this because I took the time to test the library to check if it worked and I didn't got any "SSH2.executingCommand" in my logs.
Tests done connecting to a remote server.
The result I get is inside the sub
B4X:
Sub SSH2_CmdExecuted (Success As Boolean, Result As List, TaskId As Int)
End Sub
** Activity (main) Create, isFirst = true **
>>> [SSH]: Connection was successfully established.
>>> [SSH]: Command was successfully executed.
>>> [SSH]: Connection was closed. Reason: Closed due to user request.