Solved this issue by adding to capacitor.config.ts instead of capacitor.config.json
capacitor.config.ts
capacitor.config.json
server: { url: "http://{yourIpAdress}:{yourAppPort}", cleartext: true }