Back

[SOLVED] Can't connect to localhost instance from mobile device

  • 0
  • Self Hosted
  • General
dch09
10 Sep, 2023, 14:34

nw_socket_handle_socket_event [C3.1.2:1] Socket SO_ERROR [61: Connection refused] - error I receive when trying to connect to my app from iPhone. Connecting to the console & database from computer works normally. Should I change something in my config? Ports maybe?

TL;DR
The user had an issue with connecting to the localhost instance from a mobile device. They mentioned that it was working in the simulator, but not on a real iOS device. Changing the localhost to the computer's IP address solved the problem. The user was unsure why it stopped working initially and asked if there should be any changes made to the config or ports.
dch09
10 Sep, 2023, 15:14

Changing localhost to computer ip fixed it, but that does not explain how it stopped working in the first place

Drake
15 Sep, 2023, 20:24

i wouldn't have expected localhost to work in the first place if you were using a separate real iOS device 🧐

Drake
15 Sep, 2023, 20:24

[SOLVED] Can't connect to localhost instance from mobile device

dch09
15 Sep, 2023, 20:26

it was actually! for like 2 weeks.

Drake
15 Sep, 2023, 20:32

i know it works in simulator... 🧐

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more