I am using https://bootstrapious.com/p/how-to-build-a-working-bootstrap-contact-form example index-3.html, contact-3.php, contact-3.js. Getting error 'SMTP ERROR: Failed to connect to server: Connection refused (111). I tried 1) smtp port 465 with SMTPSecure ssl 2) smtp port 587 SMTPsecure tls 3) smtp port 25. But not able to send mail. Kindly suggest solution.
Related
I manated to lock myself out of SSH on an Canonical-Ubuntu-22.04 SSH always free server. do anyone know how i can get access back?
PS C:\Users\mikel> ssh -i ~/.ssh/ssh-key-2022-10-19.key ubuntu#129.xxx.200.16
ssh: connect to host 129.xxx.200.16 port 22: Connection refused
ssh: connect to host 129.xxx.200.16 port 22: Connection refused
means the remote host is sending the reject flags back, it can be due to
firewall blocking ssh port
iptables blocking port 22
security groups (Ingress, egress) blocking port 22
First check if you have allowed port 22 in console, if yes
then login to instance via console connection and then try to debug 1,2 points
I am using PyCharm to connect to my local MySQL database running at localhost port 3306. Here's my JDBC url in the "Data Sources and Drivers" window as shown by PyCharm:
jdbc:mysql://localhost:3306/mydb
When I try to connect or click "Test Connection" I am getting this error in IntelliJ:
Error: Connection to MySQL failed.
Connection to Local MySQL failed.
[08S01] Communications link failure.
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
I can connect to mysql using the command-line client just fine, it's just PyCharm that's not working. What am I doing wrong?
Make sure your MySQL isn't listening on IPv6 address. For some reason IntelliJ/PyCharm has problems when connecting to MySQL running on IPv6 address.
To see what address your MySQL server is listening on, type:
$ ss -ntl|grep 3306
LISTEN 0 80 [::1]:3306 [::]:*
The [::1]:3306 part means it's listening on IPv6 address on localhost.
To change to IPv4, open /etc/mysql/my.cnf and add/set the bind-address parameter in [mysqld] section to 127.0.0.1 instead of localhost:
...
[mysqld]
...
port = 3306
bind-address = 127.0.0.1
...
Then restart mysqld.service and you'll be able to connect via IntelliJ/PyCharm.
I can't get Gmail SMTP to connect and I'm getting this debug info on tls:
2017-12-05 16:40:25 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP q9sm1085224pfl.116 - gsmtp
2017-12-05 16:40:25 CLIENT -> SERVER: EHLO localhost
2017-12-05 16:40:25 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2405:204:d304:d69d:3c36:3d9:213e:186a]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2017-12-05 16:40:25 CLIENT -> SERVER: STARTTLS
2017-12-05 16:40:25 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
SMTP Error: Could not connect to SMTP host.
2017-12-05 16:40:26 CLIENT -> SERVER: QUIT
2017-12-05 16:40:26
2017-12-05 16:40:26
SMTP Error: Could not connect to SMTP host.
Message could not be sent.Mailer Error: SMTP Error: Could not connect to SMTP host.
I have tried SSL too, which says "can't connect". I have never had an experience like this.
Note: I am using PHPMailer
Does anyone have the same issues or is it just me ?
I make a project of web in JSP for displaying my mysql database in web. I used JSF, GlassFish server 4.1 and mysql-5.6.24 for my project. mysql is on port 3306 and GlassFish receives HTTP request on port 8080 but my project displays this error message to me in a web browser.
"Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect."
1527 port is for Derby and i am using mysql which is on port 3306 why it shows me this port error with which mysql didn't any concern 1527 is for Derby.
I have configured my system to connect to the SQL Server 2008, I am running under windows server 2008, and I made the following:-
Enable TCP/IPon my SQL Server.
Activate and enable the 192.168.1.20 for the SQL Server.
Add two inbounds rules for the 1433 post on the firewall and the sqlserver.exe.
But when I tried to connect the database I got the following error:-
The TCP/IP connection to the host 192.168.1.20, port 1433 has failed.
Error: "connect timed out. Verify the connection properties, check
that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no firewall is blocking TCP
connections to the port.".
When I typed the following:
telnet 192.168.1.20
it gave me
Connecting To 192.168.1.20...Could not open connection to the host, on port 23:
Connect failed
So what might be the problem?
the telnet command is wrong, try
telnet 192.168.1.20 1433
You didn't mention about outbound rules. You need to add the inbound + outbound rules on your machine (in the firewall) and on SqlServer machine.