-
Notifications
You must be signed in to change notification settings - Fork 113
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
Team, please respond: Connection timeout on Android #151
Comments
@idevchandra did your connection timeout randomly or after particular time interval? |
try using this dependencies
|
yes, I am facing same issue |
Yes, I am facing same issue. cannot connect socket with Android phone. |
@idevchandra @vksBhardwaj @Danish777 @SmartNodeAutomation It could possibly be due to usage higher socket.io version on server side. Currently this package supports only v2 socket.io Please track v3/v4 support here: #160 |
Socket connection works fine when connected to localhost(Ex - http://172.20.10.3:4000/), |
Nothing to worry
You need to add some header's
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: tanmoydas61999 ***@***.***>
Sent: Friday, June 18, 2021 2:19:58 PM
To: infitio/flutter_socket_io ***@***.***>
Cc: Vikas Sharma ***@***.***>; Mention ***@***.***>
Subject: Re: [infitio/flutter_socket_io] Team, please respond: Connection timeout on Android (#151)
Socket connection works fine when connected to localhost(Ex - http://172.20.10.3:4000/),
but when connected to url which is hosted on heroku,it stops working.
Please help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#151 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACPKC3S3FFLPJ55CKE5PVWLTTMCDNANCNFSM4WWTI7UA>.
|
Which headers? |
@tanmoydas61999 we do add additional configuration when hosting socket server in AWS to allow upgrade to May be something similar has to be done with heroku too? |
Describe the bug
Android connection is timingout. But, iOS is fine.
Environment:
Server: Node.js
Client: Flutter with Adhara socket.io
iOS Emulators: iOS 14.2 iPhone 12 Pro and iPhone 12 mini
Android Emulators tried: Pixel 3a API 30. Pixel 4 API 30.
Have you tried reproducing the issue with example available in this repo?
Yes
To Reproduce
Steps to reproduce the behavior:
On Terminal, run
node server.js
On Terminal run
adb -s emulator-5554 reverse tcp:7000 tcp:7000
The behavior of the app is same with or without running the above command.
Change this repo example, as shown below, with the actual server URL - localhost.
Because, it is Android emulator, I used 10.0.2.2. I also tried with localhost, 127.0. 0.1 too. With all the three, it is same behavior - "Connection Timeout"
Expected behavior
iOS Simulator and Android Emulators should be able to connect to server.
Device details:
adhara_socket_io: ^0.4.1
Relevant Logs
The text was updated successfully, but these errors were encountered: