Google does not really rank your website based on the geographical location of your
server hosting your website. However, the SEO of your website can be slightly affected if your server is located outside your country primarily because it may cause some latency issues and some of your clients may not have a great user experience in terms of quick loading or faster browsing. This can make them go away in search of other providers in the same niche. It is recommended that you choose the services of a server hosting company located close to your address or with multiple
data centers at different locations for a better SEO experience.