Upvote:3
To quote from GOV.UK:
You can make applications for a visit visa or EEA family permit in any visa application centre, British diplomatic mission or consular post overseas where entry clearance applications are accepted.
You should be present legally in the country or territory youβre applying from.
Visa application centres are listed here.