He had, however, no active employment till September 1769, when he was appointed to command the 14-gun
sloop . In her he went out to the
Falkland Islands, where, on his arrival in the following March, he found that the Spanish, having established themselves at
Puerto Soledad, had sent to
Port Egmont, peremptorily ordering the English to quit the settlement, precipitating the
Falklands Crisis. As there was no English force to resist any aggression, the senior officer, Captain Hunt, decided to go to England with the news, leaving Farmer in command. A few days later
Swift sailed for a cruise round the islands; but in a gale was blown over to the coast of
Patagonia, and in attempting to go into
Port Desire struck on a rock, and was lost. The crew escaped to the shore, but being entirely destitute Farmer despatched the
cutter to Port Egmont with orders to the only remaining ship, , to come to their relief. On 16 April they arrived safely at Port Egmont. On 4 June a Spanish frigate anchored in the harbour; she was presently followed by four others, and the commandant wrote to Farmer that, having with him fourteen hundred troops and a train of artillery, he was in a position to compel the English to quit, if they hesitated any longer. Farmer replied that he should defend himself to the best of his power; but when the Spaniards landed, Farmer, after firing his guns, capitulated on terms, an inventory of the stores being taken, and the English permitted to return to their own country in
Favourite. After arriving in September, Farmer, on being acquitted of all blame for the loss of
Swift, was appointed to the 16-gun sloop , and a few months later, January 1771, was promoted to post rank. In August 1773 he was appointed to the 24-gun , and sailed for the
East Indies, having among his
petty officers
Thomas Troubridge, a
master's mate, and
Horatio Nelson, a midshipman. ==Death in action==