Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Refused [ios] #216

Closed
Kida007 opened this issue Aug 8, 2022 · 8 comments
Closed

Connection Refused [ios] #216

Kida007 opened this issue Aug 8, 2022 · 8 comments
Labels

Comments

@Kida007
Copy link

Kida007 commented Aug 8, 2022

Environment

Platform: ios
"@callstack/repack":"next",
"react-native": "0.66.2",

Description

after successful bundling to 100% , ios throws a runtime error:

2022-08-09 01:55:07.494364+0530 MyApp[87087:3112490] [connection] nw_socket_handle_socket_event [C5.1:1] Socket SO_ERROR [61: Connection refused]
2022-08-09 01:55:07.495782+0530 MyApp[87087:3112490] [connection] nw_socket_handle_socket_event [C5.2:1] Socket SO_ERROR [61: Connection refused]
2022-08-09 01:55:07.499188+0530 MyApp[87087:3112508] [connection] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection
2022-08-09 01:55:07.499855+0530 MyApp [87087:3112508] TCP Conn 0x6000007dca50 Failed : error 0:61 [61]
2022-08-09 01:55:07.540148+0530 MyApp [87087:3112510] [javascript] '[HMRClient] Connecting...', { url: 'ws://localhost:8081/__hmr?platform=ios' }
@Kida007
Copy link
Author

Kida007 commented Aug 9, 2022

Facing same issue on Tester App.

@namdao
Copy link

namdao commented Jan 31, 2023

the same issue with example project "Module federation". Any update @RafikiTiki .

2023-01-31 13:54:00.099228+0700 host[51868:3212564] [connection] nw_socket_handle_socket_event [C11.1:1] Socket SO_ERROR [61: Connection refused]
2023-01-31 13:54:00.100760+0700 host[51868:3212564] [connection] nw_socket_handle_socket_event [C11.2:1] Socket SO_ERROR [61: Connection refused]
2023-01-31 13:54:00.101358+0700 host[51868:3212566] [connection] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection
2023-01-31 13:54:00.101475+0700 host[51868:3212566] TCP Conn 0x600001888000 Failed : error 0:61 [61]
2023-01-31 13:54:02.115605+0700 host[51868:3212563] [connection] nw_socket_handle_socket_event [C12.1:1] Socket SO_ERROR [61: Connection refused]
2023-01-31 13:54:02.117472+0700 host[51868:3212563] [connection] nw_socket_handle_socket_event [C12.2:1] Socket SO_ERROR [61: Connection refused]
2023-01-31 13:54:02.118219+0700 host[51868:3212566] [connection] nw_connection_get_connected_socket [C12] Client called nw_connection_get_connected_socket on unconnected nw_connection
2023-01-31 13:54:02.118381+0700 host[51868:3212566] TCP Conn 0x60000188c160 Failed : error 0:61 [61]
2023-01-31 13:54:12.206628+0700 host[51868:3212563] [connection] nw_socket_handle_socket_event [C13.1:1] Socket SO_ERROR [61: Connection refused]

@khadorkin
Copy link

It seems to work only with the --host [ip] parameter.
I hope that helps you @namdao

@namdao
Copy link

namdao commented Jan 31, 2023

hi @khadorkin , you mean I go to command react-native web-start --host 127.0.0.1 and run Xcode again?
Unfortunately, It's not working.

@namdao
Copy link

namdao commented Jan 31, 2023

I have try again, and I missing set env with hmr = true in webpack.config.mjs. It's work.
Thanks

@huytd2510

This comment was marked as outdated.

Copy link

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 23, 2024
@jbroma
Copy link
Member

jbroma commented Feb 29, 2024

Hey all, sorry for the late response on this issue.

This is all most likely due to Re.Pack dev-server listening on IPv6 by default only, we've fixed this in #465 and this will be published in 4.0 release of Re.Pack.

@jbroma jbroma closed this as completed Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants