imac has been in the LAN can not access windows machines with shared
Built on windows tomcat based web services (REST)
Want to be accessed in xcode; encountered a problem: enter the URL directly into the safari, access less content (but can ping ip ah!)
With NSData * data = [NSData dataWithContentsOfURL: [NSURL URLWithString: urlAddress]]; data is always nil;
In other can ping the windows machine, enter the URL in the browser can get directly to the content
Ask you a great God, which is what causes it?
Reply:
With NSUrlConnection try.
In DidReceiveData and DidFinishLoading inside look can receive data.
Reply:
Or not, URL nowhere!
Reply:
Try to write directly IP
Reply:
Enter the URL directly into the safari, access less content (but can ping ip ah!)
telnet windows machine to try port 80, it should be web services windows machine problems
No comments:
Post a Comment