I'm assuming English is not your native language.
A stranger is simply a person you do not know. The word has nothing to do with the person's origin.
A foreigner is a person from a different country. The word does not reflect at all on whether you know the person.