If you are employeed by a foreign company, you will probably pay taxes in that foreign company (i.e. this is the case for Germany). Officially, living in another country for longer than 3 months is only possible, if your company officially sends you there. Otherwise, there are issue with social...