Remote Debugging in Qt Trought Telnet. Is It possible? - qt

I have some device in MIPS architecture, on this device unfortunately wasn't instal any server ssh, but telnet daemon is present. I try connect to this device in goal remote debbuging but I do not can connect. Also If I try test connect.
So it is possible to remote debugging in Qt trought Telnet ? Whether this function is only reserved for SSH server ?

Related

How to connect a Server in linux (host) with a client running in QEmu's guest linux (guest)

I want to connect via TCP socket a server app running in the host with a client running in the QEmu guest.
I use port 5104 for the socket in the server.
I start the server.
Then I found that I can not launch the QEmu giving that port as the input point for the client in the guest, like this:
qemu-system-arm ... -net user,hostfwd=tcp:127.0.0.1:5104-:5104
Gives the error "Could not setup host forwarding rule ..."
I guess that qemu acts like a server also and then the port is already taken by the server previously launched and then is not possible to do it.
Which is the correct syntax? The documentation talks about the option guestfwd but I tried all the possibilities and I couldn't found the solution. It should be way to do it.
Any suggestion?

Using PuTTY as backend

I'm developing a Java application that uses different libraries to connect to SSH servers or to console terminals via serial port. Now halfway into the development I see that it would be really interesting to be able to replace those libraries with the PuTTY program itself. Users would enter the connection parameters (IP address, serial port, SSH keys, ...) into PuTTY as they usually do and the Java application would send the commands to PuTTY and read the output of those commands. Advantages:
PuTTY is very reliable and also it's what the users use when they do the process by hand so it's guaranteed that the data communication will work fine. Also they could use their current saved sessions, settings and any other configuration
No need to import and use different Java libraries for Telnet, SSH, serial communications, etc
In the case of serial port, only one program can be connected to the COM port so it's the only way that the user could send commands without closing the Java application
Is there a way to do this with PuTTY or other equivalent program?

How do I open a port in Windows 10 for use?

I need to open port#42474 on my Windows 10 system for penetration testing purposes.
I added it to the inbound list of my Windows Defender Firewall (both TCP and UDP protocol), and it is enabled.
However, whenever I am trying to ping this port on my machine using telnet it is throwing an error as
Connecting To localhost...Could not open connection to the host, on port 42474: Connect failed
I am able to use telnet to ping other sites such as google.com. But not this port on my machine. Below is the command I am running to test the port and the error:
Port
Telnet error
telnet localhost 42474
Do I need to do anything else to open port#42474?
How do I verify if this port is available for use?
TCP ports are bi-directional, so check these tips:
Verify your service on this port is running: netstat -a
Be sure your firewall isn't blocking (try to deactivate it: if it works well, your rule isn't correct)
Search for your service log: maybe,
it receive information, but it's not able to reply. I recommend you to use PuTTY or Kitty (which is my favorite, because it's portable without registry keys modification), and try to connect on this port.
If you need a tool that able to listen on the port, see this post: Utility to open TCP port to listen state and netcat.
You can use the Python programming language. More specifically, the socket library:
import socket
hote = "localhost"
port = 4444
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.connect((hote, port))
print "Connection on {}".format(port)
socket.send(u"Hey my name is Abdx!")
print "Close"
socket.close()

Automatically find Arduino without IP

I have a RaspberryPi which is going to act as the server for my Arduinos which are connected to the same network.
However, the RaspberryPi is unable to automatically connect to the Arduino. I have to hardcore each Arduino IP address into the server.
Is there anyway for my server to search the network and identify the arduino so it could be added into the server database automatically. Or the other way round, the arduino find the server ip and attempts to connect to it.
My server is running on node.js
If both the Rasbpi and the Arduino are connected to the same router, they are in the same subnet. You can let tell your server periodically scan the subnet ip range.
I am not familiar with node.js but here are some good starting points for network scanning:
https://www.npmjs.com/package/ip
https://github.com/jas-/node-libnmap
From your server install the latest nmap binary then expose that tool to node.js like so:
'$ npm install --save libnmap'
Then use the discover method available to find all connected devices per network interface.
var nmap = require('libnmap');
nmap.discover(function(err, devices) {
if (err) throw err;
console.log(JSON.stringify(devices));
});
I would use mDNS to find the Arduinos. The only requirement for the RPi is to be running Avahi, to have the appropriate multicast port open, and to have the mDNS resolver installed and configured. There are several Arduino libraries available that implement mDNS; a quick Google search finds a few.

TCP/IP connection timed out

I wrote a java program of TCP/IP Client which is supposed to read data from TCPIP server device.
Problem is when I give the IP and Port of the Device, java gives error of "Connection Time out". Obviously this is problem of not connecting to that Device.
I want to know if there is way to know where the problem is? Whether that TCPIP server device is not reachable (if no, then how to check it )
whether Its the router / network issue that TCPIP Client and Server has to be on same network or use same router to communicate. OR Just IP:Port is enough.
How on my computer may I know that TCPIP server device is turned on and streaming??
P.S. That TCPIP Server device can also be connected with blutooth connection. can i read streaming through blutooth in Java?? if yes what/How should I do it?
I want to know if there is way to know where the problem is? Whether
that TCPIP server device is not reachable (if no, then how to check it
)
Use telnet from the client - it will try to connect to the remote server at the port that you specify. For example telnet google.com 80 attempts to reach google.com on port 80. You could also use an IP address in place of "google.com". If you are on a windows box, you might have to enable telnet first.
You can also use netstat on the server. It should say the ports that are currently open and the state that they are in. For example, your Java server program should be listening on the port, so the state should say LISTEN.

Resources