Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have written a simple chat web app using .net and it all works fine. Now I have written a small iphone app that is meant to interact with the web app. The problem is I dont know what to do in terms of putting them together. Is there a way to locally host the web app on the mac and then give that address to the iphone app. Or will I have to host it online and just give it the web address.

share|improve this question
How are you currently hosting the .net app? You can certainly use the loopback address (127.0.0.1) in the iOS Simulator, or the Mac's IP address for a device connected to the same network, to talk to locally-hosted services on your Mac, but I'm not familiar enough with running locally-hosted .net services to help you with that part. – gaige 17 hours ago
Well it currently is only hosted by clicking run in Visual Studio on my laptop. – walsh06 16 hours ago
If your laptop allows external access from another device, you could just find out the IP address of your laptop and use that from either the simulator or the device. If there's a firewall on your laptop or if VS doesn't allow incoming connections except from localhost, you'll have to figure those things out. But, there's nothing preventing you from talking to another device on the same network from either the iOS simulator or an iOS device. – gaige 16 hours ago
Ok thanks for the help. Im running into issues with app now getting various errors so I need to try sort them. Im not sure whether they are related to connecting to my laptop or not – walsh06 15 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.