I'm trying to run remote blast, but I keep getting this error:

**-bash-4.2$ blastp -remote -db swissprot  -query test.txt -out outfile.txt -outfmt 7

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (310.5) [blast4]  Service not found

Error: (315.2) CConn_Streambuf::CConn_Streambuf():  NULL connector: Unknown

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (310.5) [blast4]  Service not found

Error: (315.2) CConn_Streambuf::CConn_Streambuf():  NULL connector: Unknown

Error: (802.5) CObjectOStream: error at byte 14: stack is empty: write fault

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (310.5) [blast4]  Service not found

Error: (315.2) CConn_Streambuf::CConn_Streambuf():  NULL connector: Unknown

Error: (802.5) CObjectOStream: error at byte 14: stack is empty: write fault

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (303.7) [URL_Connect]  Failed to connect to www.ncbi.nlm.nih.gov:443: Not supported

Error: (310.5) [blast4]  Service not found

Error: (315.2) CConn_Streambuf::CConn_Streambuf():  NULL connector: Unknown

Error: (802.5) CObjectOStream: error at byte 0: stack is empty: cannot close output stream

Error: (CIOException::eFlush) COStreamBuffer::Flush: failed

Error: (CSerialException::eIoError) byte 0: cannot close output stream

Error: (802.4) Cannot close serializing output stream(CSerialException::eIoError) byte 0: cannot close output stream

Error: (802.5) CObjectOStream: error at byte 14: stack is empty: write fault

Error: NCBI C++ Exception:

    "/opt/insy/env.el7/src/ncbi-blast-2.2.27+-src/c++/src/util/strbuffer.cpp", line 794: Error: ncbi::COStreamBuffer::FlushBuffer() - write fault

    "/opt/insy/env.el7/src/ncbi-blast-2.2.27+-src/c++/src/serial/objostr.cpp", line 571: Error: ncbi::CObjectOStream::Write() -  Frame type= eFrameNamed, Object type= Blast4-request*

I am pretty sure that my command is correct and I have a working internet connection. Any ideas?
Thanks!

Have you downloaded the latest blast+ package (v.2.5.0)? If not that should be the first thing to try.

NCBI has moved to `https-only` connections, which are only supported in the latest versions of their software (e.g. blast, sratoolkit etc). You appear to be using blast+ v.2.2.27.