Opening a firewall port for a plugin that connects to an external service

You need to open a firewall port when a plugin, such as a courier, ERP or accounting software integration, connects to the service's server on an unusual port, which is closed on Konet servers. In that case the plugin does not connect or times out. Find in the plugin's documentation which port and which destination server it needs and open a ticket with those details, so that Konet can review the request.

Why some ports are closed in the hosting firewall

Every connection on the internet is made on a port, a number that shows which service is being called. Sites and most APIs use the web ports, ports 80 and 443, for HTTP and HTTPS. Connections on these work normally, which is why WordPress updates, card payments and most plugins work. If you are planning a new connection between the site and a supplier's system, first see how API integration in WordPress is done.

On Konet servers the firewall keeps closed any ports that are not needed. That way a plugin with a security hole or a malicious script cannot connect wherever it likes from the server. When a service runs on its own port, for example a web service on a four-digit port, the outbound connection to it is blocked. Part of the server's protection is also Imunify360, which includes a firewall.

How can I tell that a closed port is the cause

The usual symptoms:

  • The plugin says "Unable to connect", "Connection failed" or "The service is not available".
  • In the plugin's log or in the error_log you see cURL error 28: Connection timed out, cURL error 7: Failed to connect to ... port ... or Connection refused.
  • The connection test in the plugin's settings takes a long time and then fails.
  • The same connection details work on another server or on your computer.

curl error 7 failed to connect and connection refused mean that the connection was not made at all. The cause may be a closed outbound port on the hosting, but also a destination server that is down or does not accept connections from your IP. If the message says the password or API key is wrong, the connection was made and the problem is in the credentials. Check them with the service first. The same applies to the "Error validating access token" message in an Instagram feed on your site.

Where do I find which port is needed

  1. Open the plugin's documentation or installation instructions.
  2. Look for a section with a title such as "Server requirements", "Requirements" or "Firewall".
  3. Note down the port and the destination server, as a name (e.g. api.example.gr) or as an IP address.
  4. If you can't find the details, ask the plugin developer or the service you are connecting to. They often provide them with the contract or with the access credentials for the web service.

How do I request a port to be opened and what do I write in the ticket

Opening a port is always done through a ticket. Open a ticket from the Client Area, from the service owner's account, and include:

  • the site's domain, e.g. example.gr,
  • the name of the plugin and the service it wants to connect to,
  • the port and whether it is TCP or UDP, if the documentation says so,
  • the destination server, name or IP,
  • the error message you see,
  • if available, the link to the documentation that requires the port.

Don't write passwords or API keys in the ticket. They are not needed to review the request.

Konet reviews every request individually, based on the server's security. Some ports are never opened, whatever the plugin. Once we reply, test the connection again from the plugin's settings.

Outbound or inbound connection, what is the difference

This article is about outbound connections, meaning your site calls an external server. This is what most plugins need.

An inbound connection is the opposite. An external computer connects to the server that hosts your site, for example an ERP that reads the database directly through remote MySQL. Stricter rules apply here. Remote access to the database is granted only to a Greek static IP and only on request. See the Remote Database Access policy.

If your application must accept connections on its own port, for example your own application server, a VPS is usually the right fit, where you manage the firewall yourself.

A site hosted at Konet sends email only through our own mail server. If a plugin asks to connect to an external SMTP server of another provider, that connection is not opened. Set the plugin to send from an email account of your domain at Konet. The mail server settings are in the article on email client settings.

Frequently Asked Questions

The plugin worked with my previous provider, why not here?
Every provider has different firewall rules. With your previous provider the port may have been open. Send us the port and the destination server in a ticket so we can review it.

The service asks for my server's IP address to add me to an allow list. Where do I find it?
Your account's IP is shown in cPanel, in the General Information column, under Shared IP Address or Dedicated IP Address. If the server changes, the IP changes too, and you need to update it with the service. If the service wants an IP that is not shared with others, see when you need a Dedicated IP.

How quickly is the request reviewed?
We review the request like any other ticket. If the details are complete, no clarifications are needed and the process closes faster.

Can I open a port in the firewall myself from cPanel?
No. The firewall is shared by the whole server and managed by Konet. The cPanel IP Blocker only blocks visitors to your site, it does not open ports.

The port was opened but the plugin still doesn't connect. What do I do?
Check with the service that it has accepted your server's IP, if it requires that, and that the connection details are correct. If the error stays the same, reply in the same ticket with the new message and the time of the test.

The same connection suddenly got blocked although it used to work. Why?
Often the service has changed its server, IP or port. Ask its provider whether something changed and send us the new details in a ticket.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups: 24 every 2 hours for 48 hours, then 6 daily, 4 weekly and 3 monthly.