E.g. the NYC consulate: https://www.ny.us.emb-japan.go.jp/itpr_en/visa00.html
> You may apply for a visa at this Consulate if you are currently residing within the area covered by this Consulate.
Also, "a traveler without a fixed residence" can get a non-immigrant visa for Schengen? I'm sorry but this just is not true if you're not a Westerner.
If there is no doubt that you will leave and you can sustain yourself: sure.