3

I have a game which uses socket based connections. It wrok well in an IPv4 network.

We submitted an update to the App Store and it got rejected saying the game doesn't work under IPv6 networks. Our game backend is using AWS.

When I gone through many forums I came to know that AWS is not IPv6 ready.

For client I'm using CocoaAsyncSocket. I've disabled IPv4PreferredOverIPv6. But is not working.

Can you please suggest a better solution?

Nirav D
  • 71,513
  • 12
  • 161
  • 183
Kumar Chikkanna
  • 119
  • 1
  • 3
  • 15
  • Hi Kumar, could you please mention the version of AWS SDK for iOS which you are currently using? The latest one is 2.4.3 and is the recommended SDK to be used. – Rohan Dubal Jun 14 '16 at 17:06

1 Answers1

0

If you are using GCDAsyncSocket to connect to an IPv4 address literal, this is a known issue that has already been fixed in the latest commit in the CocoaAsyncSocket repository 2 weeks ago. Make sure you are using the latest revision.

The latest revision, plus setting IPv4PreferredOverIPv6 to NO, should work.

user102008
  • 30,736
  • 10
  • 83
  • 104
  • I've set the flag to `NO`. But it's not working. I got this error. Error Domain=NSPOSIXErrorDomain Code=65 "No route to host" UserInfo={NSLocalizedDescription=No route to host, NSLocalizedFailureReason=Error in connect() function} – Kumar Chikkanna Jun 15 '16 at 08:19
  • @KumarChikkanna: And you've checked out the latest revision from the repo? – user102008 Jun 16 '16 at 22:54
  • @user102008 as of 3/7/16 it's still only a PR it's not been accepted onto trunk, – Keab42 Jul 04 '16 at 14:19
  • @Keab42: Hmm, I might have been looking at the wrong branch (or maybe they altered the branches since I looked?); it was committed in the `ipv6` branch – user102008 Jul 04 '16 at 16:51