Reg visa stamping

Hello Team, my query is if a person needs to go for visa stamping, is it compulsory that he needs to go for visa stamping to his/her home country only or can visit any near by country of US…like canada or mexico.

You can go to any consulate provided they allow TCN (third country national) visa stamping.

https://travel.state.gov/content/travel/en/us-visas/visa-information-resources/nonimmigrants-present-visiting-canada-mexico.html