Closed ctfrancia closed 5 years ago
So, I'm stupid. to fix the issue: (mac os x) System Settings -> Network -> use the IP Address you find there in place of the localhost so in app.module.ts put const config: SocketIoConfig = { url: 'http://IP_ADDRESS_FROM_NETWORK:8080/', options: {}};
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[x] 4.x
Current behavior:
While running the app on the device it will not connect to express server
Expected behavior:
to connect to server
Steps to reproduce:
Related code:
config.xml
express server.js
index.html
app.module.ts
page that uses socket connection
chatService
Other information:
I have followed all previous suggestions with connecting. However, it will not connect. For example when I don't have my server running I get the same issue, which is telling me that it has to be something wrong with the config.xml or some type of manner that I am connecting that the phone doesn't like.
Ionic info: