Impossible to connect to minecraft remote server : connection refused - ubuntu-18.04

I'm trying to set a Minecraft 1.15.1 server on my Ionos Cloud Ubuntu 18.04 server, used 3 differents tutorials, openned port 25565, allowed all users to access the folders.
The server runs perfectly, but when I tried to connect to it I get the error :
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information
No informations on the minecraft logs, can't find anything on apache logs.
I there a log anywhere which can provide me informations about the problem blocking the connections to the minecraft server ?

Resolved : Ionos, my server provider, have an extra firewall which is controlled in my server control panel. I added the port to the whitelist and now it's working perfectly.

Related

AWS RDS Instance is not connecting to Jmeter

I am trying to connect my RDS instance to a Jmeter load test however no matter what I try, I keep getting this error message in the Results Tree:
Cannot create PoolableConnectionFactory (The connection to the host database-1.cqdkrfikhe1t.us-east-1.rds.amazonaws.com, named instance database-1 failed. Error: "java.net.SocketTimeoutException: Receive timed out". Verify the server and instance names and check that no firewall is blocking UDP traffic to port 1434. For SQL Server 2005 or later, verify that the SQL Server Browser Service is running on the host.)
I feel it may be a problem with my Database URL in JDBC Connection Configuration.
The picture below shows the summary report.
I have mainly tried rewriting the Database URL multiple different ways but none of them seem to work. I have also tried removing and reinstalling the JDBC Drivers but that doesn't seem to work either. I have absolutely no idea what the problem could be. Could someone please help me out with this problem?
Edit: When I change the Database URL I sometimes get this error
message as well:
Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets
Layer (SSL) encryption. Error: "PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target".
ClientConnectionId:9b700d73-f3f0-4cf6-b3a4-607fa9827219)
I think you need to use port 1433
Check out Connecting to a DB instance running the Microsoft SQL Server database engine article
So cross check the port number, VPC options, public accessibility, etc. with the values from the JDBC Connection Configuration
More information: The Real Secret to Building a Database Test Plan With JMeter

SQL remote connection not working on google compute engine

I have a google compute engine with a static IP address running widows server 2012 with SQL server 2012 express.
I have enabled SQL remote connections by following the instructions here and have setup windows firewall and google firewall to allow connections on port 1433. I also verified that SQL engine is running.
I have tested the port connection with telnet and it's allowing the connection.
The problem is that i still am not able to connect to the server.
error:
a network related or instance specific error occurred while
establishing a connection .... error 26 error locating server
specified
Here's the connection string im using
"Data Source=IP Address\SQLEXPRESS;Database=dbname;User Id=xyz;Password=123;"
A user posted the same question here but i am able to telnet my server.
I have used the same steps before with a AWS server and everything worked perfect. Is there other steps that have to be done with a google compute server ?
If you are attempting to connect from a remote machine outside of GCP, then have you looked inside your SQL Server Firewall Rules, under the Advanced tab,the Edge Traversal setting?
Edge Traversal Setting
I had an error in the connection string.
I ended up switching to Amazon AWS servers and the following connection string works.
"Data Source=ec2-00-000-00-000.compute-1.amazonaws.com,PORT#;Database=test;User Id=xyz;Password=1234;"

Connect LINQPad to Remote Server

I have followed this tutorial to enable Remote Access on my Virtual Dedicated Server, I restarted SQL Service on remote server as well.
When I attempt to connect to the remote sql server I get the following error:
In the connection dialog below, I input my details in the format show:
What am I doing wrong?
On the firewall step (in tutorial) I had chosen Domain, but should have chosen Public because my home PC is not on the same Domain as my server. That fixed it.

Does phpseclib need a ftp client setup on server?

I'm using CakePHP and its plugin CakeFTP. This plugin relies on phpseclib. I wrote a function in a model which log to a remote FTP server, download files and process content using CakeFTP.
On my local machine (Ubuntu 14) everything goes fine : connection to the remote server, downloading files and so on. I pushed my work on my client server and I get a "unable to connect" error (the remote FTP server is the same).
I don't manage my client's server, but I have a ssh access, so I tried to connect to the FTP remote server from a terminal, and I get "ftp : unknown command".
I didn't dive into CakeFTP or phpseclib code, but could my bug be caused by the absence of FTP client on this server ?

Accessing SQL Server over an SSH tunnel

In my development shop, we deploy code on virtual servers that sit on a remote network.
We access the machines on that network by first opening an SSH connection to a gateway server, and then SSH-tunneling RDP over a local port.
I would very much like to be able to locally access SQL Server instances running on these servers in the same way.
I've set up a local port (3398) to redirect to the SQL Server port on the remote instance (L3398 -> remote.machine.com:1433).
I can then actually test the connection by telnetting to localhost 3398, and I get a connection: the screen clears and I can type characters to some listening process.
But when I try to connect SSMS to localhost:3398, it times out and then claims that there is no SQL Server listening on that port:
Cannot connect to localhost:3398
Additional information:
A network-related or instance-specific error occurred while establishing a connection
to SQL Server. The server was not found or was not accessible. Verify that the
instance name is correct and that SQL Server is configured to allow remote
connections. (...)
I am sure that the server accepts remote connections, because I have connected to it remotely while logged in via RDP to a different machine within the remote network.
I have Googled around to know that this is possible; does anyone have some idea why this isn't working, or what I might do to diagnose and hopefully fix the problem?
Thanks!
Instead of connecting to localhost:3398
Use 127.0.0.1,3398
For Authentication type Azure Active Directory - Universal with MFA (Mutli-Factor Authentication), in addition to specifying the port correctly (127.0.0.1,3398), I also had to point the host to localhost.
On Windows, I had to edit my hosts file to include the server host:
127.0.0.1 server.example.com
Then, in SSMS, I could connect to server.example.com,3398, which would perform the MFA correctly.
I could have performed this redirection at a higher DNS level as well.
The issue is probably that SSMS is trying to access the SQL Server Browser Service, which is UDP port 1434. Take a look at http://technet.microsoft.com/en-us/library/cc646023.aspx for an overview of the additional ports you may need to forward to get this to work.
I'm pretty sure I figured out the answer to this, actually.
On the remote network (which we don't control), for security purposes, it appears that the database servers are set up to ignore database requests coming from the gateway machine. So I guess there's just no good solution short of convincing them to give us full VPN access. Thanks everyone for your help.

Resources