• 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 t$$anonymous$$s 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 t$$anonymous$$s it appears that DNS name resolution is failing. I've tried t$$anonymous$$s 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 anyt$$anonymous$$ng that seems to fit. Does anyone have a suggestion or a solution for how I might resolve t$$anonymous$$s 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

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 t$$anonymous$$s 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

Curl error receieved when sending post request using UnityWebRequest 0 Answers

Try catch alternative for HTTP request 1 Answer

HTTP WebRequest with iOS Stripping 1 Answer

UnityWebRequest.error return "cannot connect to destination host" on iOS13.5.1 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