# iOS devices, ARM64 and dedicated server connection issues

**URL:** <https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596>\
**Category:** Mobile\
**Tags:** dedicated-server, unreal-engine, Shipping, iOS, question\
**Created:** [March 21, 2017, 8:59pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596 "2017-03-21T20:59:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saltylike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saltylike/32/875361_2.png) [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Post date:** [March 21, 2017, 8:59pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/1 "2017-03-21T20:59:39Z")

</div>

Hi guys, our team is working in a multiplayer project with compatibility with Android and iOS devices and we’re found a problem.

The issue is related with the ARMV7 / ARM64 architectures, we noticed that is not a new thing as is described next:

- [Issue with IOS Shipping on 4.6.0 - Mobile - Unreal Engine Forums](https://answers.unrealengine.com/questions/145616/issue-with-ios-shipping-on-460.html)
- [Some iOS Devices Can't connect to dedicated server - Mobile - Unreal Engine Forums](https://answers.unrealengine.com/questions/246667/some-ios-devices-cant-connect-to-dedicated-server.html)

Sorting, some iOS devices (the ones with AMR64 architecture we assume) are unable to connect to our dedicated server running in a windows machine. This issue is not present in Android devices or Windows machines.

If we package the project including ARM64 the game does not connect to the dedicated server, it just work with ARMV7, this is not an issue while testing, but the problem is that Apple does not accept packages with ARMV7 (32 bits) anymore, so we’re forced to use ARM64.

We already try everything in our hands without results, any idea how to proceed?. We’re close to a alpha test and this is very problematic for us.

Additional information:

- Unreal engine version: UE4.14.3 Source.
- Apple test device: IPAD Model MD789LL / A.
- Android test devices: Samsung Galaxy Note 5, Samsung Galaxy Note 3, Samsung Galaxy SIII.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 27, 2017, 3:59pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/2 "2017-03-27T15:59:26Z")

</div>

Hello HDardis,

Thank you for reporting this problem. I’m currently investigating this connection issue and one of our iOS developers believes that he has already made a change to fix this but it’s not quite available on Github yet. Once the change is available, I’ll update here so that you can try grabbing the build with this change and see if it fixes the issue for you. If that fails, I’ll see if I can get a local reproduction of the issue and have a bug report entered.

---

<div class="post-metadata">

**Author:** ![Saltylike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saltylike/32/875361_2.png) [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Post date:** [March 28, 2017, 1:53pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/3 "2017-03-28T13:53:13Z")

</div>

Thanks a lot Matt!, is very good to know, we have some scheduled deliveries so we’re in trouble. We will be attentive to your response.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 28, 2017, 3:55pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/4 "2017-03-28T15:55:43Z")

</div>

It doesn’t seem like the fix will be put into Main in the immediate future so I’m going to just post the change that they believe will fix the issue. Please take this into your build and see if it helps.

In Engine/Source/Runtime/Sockets/Private/IOS/SocketSubsystemIOS.cpp:

Line #107 (should be Line #104 in 4.14)

Change from:

```
WifiAddress = ((sockaddr_in*)Travel->ifa_addr)->sin_addr.s_addr;

```

to:

```
WifiAddress = ntohl(((sockaddr_in*)Travel->ifa_addr)->sin_addr.s_addr);

```

Line #139 (should be Line #136 in 4.14)

Move the following line to the next line:

```
return HostAddr;

```

Add the following on the aforementioned line:

```
bCanBindAll = true;

```

If the change cause the engine not to compile, please keep in mind that this change was made with 4.15 in mind and may require an update to compile correctly. This should be a standalone and compile successfully however.

Please let me know the results when you get to try this.

---

<div class="post-metadata">

**Author:** ![Saltylike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saltylike/32/875361_2.png) [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Post date:** [March 28, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/5 "2017-03-28T17:26:27Z")

</div>

Hey Matt!, there are really good news!, we already tested the fix in a developer build (arm64 ofc) and it works!, we’re about to perform a shipping build, ill post our results soon.

---

<div class="post-metadata">

**Author:** ![Saltylike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saltylike/32/875361_2.png) [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Post date:** [March 28, 2017, 8:38pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/6 "2017-03-28T20:38:04Z")

</div>

It works like a charm!, Thank you so much!

---

<div class="post-metadata">

**Author:** ![zompi2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zompi2/32/937524_2.png) [@zompi2](https://forums.unrealengine.com/u/zompi2)\
**Post date:** [January 5, 2018, 6:46pm UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/7 "2018-01-05T18:46:16Z")

</div>

This might be digging out dead topic, but - we’ve had simillar issue and we’ve discovered that the binding has quite a big issue.  
Here’s the pull request fixing it: .com/EpicGames/UnrealEngine/pull/4395

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [October 31, 2022, 1:27am UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/8 "2022-10-31T01:27:39Z")

</div>

im on unreal 4.27.2 and my ios cant connect to my windows dedicated server, do I need to do all this still or did unreal fix it?

anyone out there?

anyone out there know?

---

<div class="post-metadata">

**Author:** ![bbois1999](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bbois1999](https://forums.unrealengine.com/u/bbois1999)\
**Post date:** [February 7, 2023, 12:26am UTC](https://forums.unrealengine.com/t/ios-devices-arm64-and-dedicated-server-connection-issues/388596/9 "2023-02-07T00:26:20Z")

</div>

any updates? Also having issues
