Publishing to FTP: Cannot open data port, or 'Could not open data connection to port'

This error means EverWeb signed in to your web host's server but couldn't open the second connection it uses to send files. The usual fix is to turn on Use passive publishing connections.

What you may see

  • Protocol Error: Could not open data connection to port followed by a number, such as 49422. The number changes each time.
  • Error: 30 The FTP PORT command returned an error.
  • In older versions of EverWeb: EverWeb could not connect to port followed by a number.

Why it happens

FTP uses two connections. One signs in. The other, the data connection, carries each file. Each one goes through a port (a numbered door on a computer).

With passive connections, your computer opens both connections to the server. That works with most home routers. Without them, the server tries to connect back to your computer, and routers and firewalls usually block that.

Fix it

Publish again after each step.

  1. Turn on Use passive publishing connections. On a Mac, go to EverWeb > Settings > Publishing. On Windows, go to Edit > Options > Publishing.
  2. Set Maximum Connections to 1 on the same tab. Some hosts limit how many connections you can open at once.
  3. Try a phone hotspot. Connect your computer to your phone's hotspot and publish. If that works, something on your usual network is in the way. Restart your router. Then check any firewall or security app, such as Little Snitch, Norton or Windows Defender, and allow EverWeb.
  4. Turn off any VPN, and iCloud Private Relay on a Mac. See How to disable iCloud Private Relay.
  5. If passive was already on, try it off once, then turn it back on if that doesn't help.
  6. Use the newest version of EverWeb your plan covers. Newer versions fix publishing problems that older ones had.
  7. Ask your host. You can send them these words:

    I publish my website with EverWeb using passive FTP. Publishing fails with "Could not open data connection to port". Is passive FTP turned on for my account, and are its data ports open?

Still stuck?

Go to Help > Publishing Connection Diagnostics (EverWeb 4.5 or later) and click Run Tests. Then contact us with the full error text (click Copy To Clipboard), the diagnostics report, and a full-screen screenshot of File > Edit Publishing Settings with your password hidden.

Related articles

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is FTP or FTP Server?

FTP stands for File Transfer Protocol. It is how your website files are transfered from your...

How do I publish my EverWeb website to another web host with FTP, FTPS or SFTP?

If your website is hosted by another company, such as GoDaddy, Bluehost or IONOS, EverWeb can...

The select folder button is greyed out and I can't click it. How do I publish my site?

You must sign into your EverWeb account to publish your site within the EverWeb software. To do...

Error 78: Can't find directory path (the directory/path couldn't be found)

If EverWeb says Can't find directory path (Error 78), the Directory/Path in your publishing...

Is EverWeb Compatible with Godaddy?

Yes! EverWeb is fully compatible with Godaddy.