If you happen to be in a city where an embassy or consulate of your country actually exists, typically embassies are in the capital city of a country, and if you come from some countries there may be consulates in some other "main" city, but that's it.
You may need to "walk" hundreds of km to reach one of those.