# Socket Connect get exception InvalidHttp ResponseCode Exception on iOS with vmess proxy

**URL:** https://forum.heroiclabs.com/t/socket-connect-get-exception-invalidhttp-responsecode-exception-on-ios-with-vmess-proxy/5524
**Category:** Runtime Framework
**Tags:** sdk-unity, server-framework
**Created:** [July 26, 2024, 3:44pm UTC](https://forum.heroiclabs.com/t/socket-connect-get-exception-invalidhttp-responsecode-exception-on-ios-with-vmess-proxy/5524 "2024-07-26T15:44:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mengxin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mengxin/32/1879_2.png) [@mengxin](https://forum.heroiclabs.com/u/mengxin)
#### Post date: [July 26, 2024, 3:44pm UTC](https://forum.heroiclabs.com/t/socket-connect-get-exception-invalidhttp-responsecode-exception-on-ios-with-vmess-proxy/5524/1 "2024-07-26T15:44:38Z")

</div>

We face a very strange issue:

on iOS, if we use the Shadowrocket with vmess proxy. then when run socket.connet, always get the error:

Error connecting socket: Exception of type ‘Nakama.Ninja.WebSockets.Exceptions.InvalidHttpResponseCodeException’ was thrown

and the reason seems like the response header is empty.

we also test same proxy with shadowrocket on Android, it works.

seem like only on iOS have this issue. very strange and confused.
