VFP SFTP cannot connect through port 6022 - port

We have successfully been connecting using SFTP over port 22. The target server is changing to use port 6022 and the SFTP connection is failing.
We can successfully connect through SFTP on port 6022 using Filezilla.
Chilkat works if we go back to port 22.
We are using the most recent release of the ActiveX dll.
Please note: I am NOT versed in the details of SFTP and how it works.
Here is the log being returned from the connection attempt:
The FSC SFTP connection to download files failed for /Targetfolder/. Verify IP address for the connection. The Chilkat message is ChilkatLog:
Connect_SFtp:
DllDate: Feb 24 2020
ChilkatVersion: 9.5.0.82
UnlockPrefix: OURSSH
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 0
SftpVersion: 0
hostname: targetserver.com
port: 6022
connectInner:
sshConnect:
connectSocket:
connect_ipv6_or_ipv4:
Connection attempt failed.
maxWaitTimeMs: 20000
totalMsWaitedSoFar: 16800
--connect_ipv6_or_ipv4
--connectSocket
Failed to establish initial TCP/IP connection
hostname: targetserver.com
port: 6022
--sshConnect
--connectInner
Failed.
--Connect_SFtp
--ChilkatLog

This issue is resolved - turns out the incorrect port was provided for the connection. When we corrected the port the connection worked fine.

Related

Informix - Socket connection to server failed

I have installed the "Informix Developer Edition 14.10.FC9 Windows" database on my local windows 10 machine.
I like to connect with the sql client DBeaver (22.3) to the database 'test'.
I know the server, the username, the password and the database name. See the following screenshot:
If i test the connection i get the following error:
Socket connection to server (ol_informix1410#localhost:1526) failed. Check your server is reachable from this client on the host:port specified.
Connection refused: connect
Do I really have the wrong port and if so how do I find out the correct port?

"No connection could be made because the target machine actively refused it" connecting to VerneMQ

I installed VerneMQ on an Azure Ubuntu 16.04 VM, and opened port 1883 inbound and outbound. VerneMQ is configured to listen on port 1883, has allow anonymous connections turned on, and vernemq has been started (vernemq start).
allow_anonymous = on
listener.tcp.default = 127.0.0.1:1883
I have created a C# console app on my Windows 10 PC to send messages to the MQTT broker on the VM. I am using NuGet package M2Mqtt version 4.3.0 and have opened 1883 both inbound and outbound in my Windows 10 firewall.
string broker = "<ip address>";
MqttClient client = new MqttClient(broker);
byte code = client.Connect(Guid.NewGuid().ToString());
I am getting connection refused error message when I try to connect.
uPLibrary.Networking.M2Mqtt.Exceptions.MqttConnectionException:
'Exception connecting to the broker'
uPLibrary.Networking.M2Mqtt.Exceptions.MqttConnectionException
HResult=0x80131500 Message=Exception connecting to the broker
Source=M2Mqtt.Net StackTrace: at
uPLibrary.Networking.M2Mqtt.MqttClient.Connect(String clientId, String
username, String password, Boolean willRetain, Byte willQosLevel,
Boolean willFlag, String willTopic, String willMessage, Boolean
cleanSession, UInt16 keepAlivePeriod) at
uPLibrary.Networking.M2Mqtt.MqttClient.Connect(String clientId) at
MQTTSendReceive.MQTT.SendMQTTMessage() in C:\Projects\19 10 12
MQTT\MQTTSendReceive\MQTTSendReceive\MQTT.cs:line 17 at
MQTTSendReceive.Program.Main(String[] args) in C:\Projects\19 10 12
MQTT\MQTTSendReceive\MQTTSendReceive\Program.cs:line 13
Inner Exception 1: SocketException: No connection could be made
because the target machine actively refused it :1883
I can't see where I am blocked.
You have told VerneMQ to listen on localhost (127.0.0.1) which means you will only be able to connect to it from the Ubuntu machine.
If you want to be able to access it from elsewhere you need to tell it to listen on all interfaces (0.0.0.0)
allow_anonymous = on
listener.tcp.default = 0.0.0.0:1883

guacamole not able to connect neither VNC nor RDP

I setup a guacamole server on ubuntu 16.04 Tried to setup a connection to a vnc server on the same machine and always got errors. I tried with RealVNC Xvnc11 TIghtVNC, and even with RDP. no luck. The error messages on log files were:
Creation of WebSocket tunnel to guacd failed: Non-numeric character in element length.
Creation of WebSocket tunnel to guacd failed: java.net.ConnectException:
Connection refused (Connection refused)
An internal error has occurred within the Guacamole server
not a valid RFB client
webSocketsHandshake: invalid client header
Any idea what could be?
The problem was that I was saving the VNC connections settings on the GUACAMOLE PROXY PARAMETERS (GUACD). I set port 5901. Which is not the correct guacd port.
I left this empty and everything worked!
for RDP use RDP encryption select option
it worked for me.

Get value from agent failed: TCP successful, cannot establish TLS to ][0.0.0.0]:10050]: connection closed by peer

The color of ZBX Availability is changing into red from green and getting following error message on Zabbix Active Check monitoring:
"Get value from agent failed: TCP successful, cannot establish TLS to ][0.0.0.0]:10050]: connection closed by peer"
Please help.
Zabbix supports encrypted communications TLS protocol v.1.2.
I think your agent is rejecting the connections. You can look at its log /var/log/zabbix-agent/zabbix_agentd.log to see the deatils.
Also you can check the version of the OpenSSL library on the agent:
$ openssl version
OpenSSL 1.0.1t 3 May 2016
If you have an outdated version - you should update it.
I had the same problem, also in zabbix_agentd.log:
failed to accept an incoming connection: from : TLS
connections are not allowed
It worked for me again only doing a service restart:
service zabbix-agent restart

Filezilla connection debugging

I know this question is too broad to answer, but I can't connect to a filezilla server I'm hosting.
The computer its on has a real IP address (not not).
I am allowing connections on ports 21 and 22.
I can connect from a local filezilla client over both ftp (mapped to port 21) and ftps (mapped to port 22).
Whenever I try to connect from another computer, nothing happens.
When I connect to a website hosted on the same computer (over http or https) the connection works fine.
The client just hangs and the server doesn't print any new lines, as if it has detected no connection at all.
How can I debug this problem? It seems too broad to really ask about, so how do I go about testing to improve the situation?
try telneting to the port :
telnet HOST 21
if you get any response, it should be from a ftp server.

Resources