Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by WTDrew · Jun 15, 2016 at 06:21 AM · ioswebrequesthttpwebrequest

WebRequest.BeginGetRequestStream fails on iOS using IPv6 DNS64/NAT64

Apple has recently made it a requirement for all apps to support IPv6 DNS64/NAT64 and I've been working to comply with this mandate.

I followed Apple's directions for setting up a DNS64/NAT64 network here (scroll down to Test for IPv6 DNS64/NAT64 Compatibility). Unfortunately when I test our app on that network, I get an exception:

 Login Failure received from server, error: Error: NameResolutionFailure
 stack Trace:    at System.Net.HttpWebRequest.SetWriteStreamError(WebExceptionStatus status, System.Exception exc)

Based on this it appears that DNS name resolution is failing. I've tried this on an IPv4 network, and it worked without error. The only low(-ish) level networking API I'm using is HttpWebRequest.BeginGetRequestStream, and I'm using that because I need to use the HTTP Verb "PUT" to connect with one of our REST services.

I'm hoping there's simply a configuration I need to set up for HttpWebRequest, as the alternative seems to be writing a lot of custom code to handle DNS64/NAT64 networks. I've spent some time with the HttpWebRequest documentation without finding anything that seems to fit. Does anyone have a suggestion or a solution for how I might resolve this issue?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image WTDrew · Jun 14, 2016 at 10:26 PM 0
Share

Also, I have verified that the DNS64/NAT64 network I set up works properly by connecting to websites through the browser on my test device, which is connected only to that network.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by WTDrew · Jun 15, 2016 at 08:14 PM

I was finally able to fix this by upgrading from Unity 5.3.2p2 to Unity 5.3.5f1.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

About Implemented host name resolution with IPv6 in Unity 4.6.9 release-notes. 0 Answers

UnityWebRequest.Put fails on iOS 2 Answers

PATCH and DELETE methods - HTTP Requests problem 0 Answers

WebException: Error: NameResolutionFailure 0 Answers

HttpWebRequest and HTTPS on iOS 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges