How to debug your application locally with iOS – iPad devices

 ———————-

Use Weblock – AdBlock for iOS app to create a redirect rule from http://app to the IP and port you like.

(Only works when on a WIFI network)

———–

Install the App Weblock from the App Store. Then configure as per instruction in the app.

You must include the protocol and the domain and also a wildcard character at the end.

If you don’t include a wildcard character the images and other parts of your site will not load as there isn’t a redirect rule them.

Here’s what the redirect value should look like.
 
http://mysite/*

 

Creds:

http://apple.stackexchange.com/questions/17077/add-a-hosts-file-entry-without-jailbreaking