Simulator unable to connect to my-computer-name.local
Originator: | ben | ||
Number: | rdar://22999127 | Date Originated: | |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | |
Classification: | Reproducible: | Always |
Summary: The iOS Simulator is unable to connect to a web server running on the same Mac when using the Mac’s local domain name (e.g., my-computer-name.local). Both my own application and Safari are unable to connect. Safari is able to connect if provided the loopback IP address (127.0.0.1) or the local domain name of another computer (other-computer.local). Steps to Reproduce: 1. In Terminal, enter this command: python -m SimpleHTTPServer 8000 2. In Terminal, enter this command: hostname 3. Open Simulator, open Safari, enter this URL: http://my-computer-name.local.:8000/ (substituting "my-computer-name.local" with the output of the `hostname` command) Expected Results: The browser inside the Simulator should successfully load a page. Actual Results: The page fails to load, the message "Safari could not open the page because the server stopped responding." is displayed. Also, the following message is printed on the Console: assertiond[1952]: assertion failed: 15A284 13A340: assertiond + 13207 [28CC4371-F3F9-3578-9436-310B23A2C638]: 0x1 Version: Xcode Version 7.0.1 (7A1001) OS X Version 10.11 (15A284) Simulator Version 9.0 (SimulatorApp-620 CoreSimulator-179)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!