<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://shazwazza.com/rss/xslt"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Shazwazza</title>
    <link>https://shazwazza.com/</link>
    <description>My blog which is pretty much just all about coding</description>
    <generator>Articulate, blogging built on Umbraco</generator>
    <image>
      <url>/media/0libq25y/frog.png?rmode=max&amp;v=1da0e911f4e6890</url>
      <title>Shazwazza</title>
      <link>https://shazwazza.com/</link>
    </image>
    <item>
      <guid isPermaLink="false">1323</guid>
      <link>https://shazwazza.com/post/using-an-iphone-with-the-visual-studio-development-server-charles/</link>
      <category>Web Development</category>
      <title>Using an iPhone with the Visual Studio development server &amp; Charles</title>
      <description>&lt;p&gt;&lt;a href="http://encosia.com"&gt;Dave Ward&lt;/a&gt; did a good post recently on how to use the &lt;a href="http://encosia.com/2010/06/10/using-an-iphone-with-the-visual-studio-development-server/"&gt;Visual Studio development server from a mobile devise such as an iPhone&lt;/a&gt;. But there’s a problem for us here, we use &lt;a href="http://www.charlesproxy.com/"&gt;Charles&lt;/a&gt; which I have found to be a better than Fiddler (it’s also cross-platform so I can use it both on my Mac and Windows machines).&lt;/p&gt; &lt;p&gt;So after reading Dave’s post I decided to have a look at how to do it if you’re using Charles, and well it’s pretty darn simple.&lt;/p&gt; &lt;p&gt;I’d suggest that you read Dave’s post first as I’m going to assume that you have, I’m just going to point out what you need to do different for Charles.&lt;/p&gt; &lt;h2&gt;Charles Configuration&lt;/h2&gt; &lt;p&gt;The first thing you need to do is find out on what port Charles is running on, by default Charles is on port &lt;strong&gt;8888&lt;/strong&gt;, but you can find the settings under &lt;em&gt;Proxy &amp;gt; Proxy Settings&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="/image.axd?picture=charles-proxy-config.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="charles-proxy-config" border="0" alt="charles-proxy-config" src="/image.axd?picture=charles-proxy-config_thumb.png" width="573" height="531"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Next we need to configure the external access to the HTTP Proxy that Charles is running. This is something that Charles handles differently to Fiddler, it’s actually a lot more configurable as you can define individual IP’s or IP ranges for access.&lt;/p&gt; &lt;p&gt;To do this you need to navigate to &lt;em&gt;Proxy &amp;gt; Access Control Settings&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="/image.axd?picture=charles-access-control.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="charles-access-control" border="0" alt="charles-access-control" src="/image.axd?picture=charles-access-control_thumb.png" width="559" height="517"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Then you just need to click &lt;strong&gt;Add&lt;/strong&gt; and enter the IP (or range) which you want to allow access to. I’ve just allowed access to the IP of my iPhone, which is &lt;strong&gt;192.168.1.44&lt;/strong&gt;. &lt;/p&gt; &lt;h2&gt;&lt;/h2&gt;  &lt;h2&gt;Conclusion&lt;/h2&gt; &lt;p&gt;The rest of Dave’s post is all you need to get this working, you connect to your computer from your external device in just the same way.&lt;/p&gt; &lt;p&gt;Hopefully this helps you out if you’re not a Fiddler user but want to be able to use a mobile device with Visual Studio’s development server.&lt;/p&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:08:14 Z</pubDate>
      <a10:updated>2023-03-23T15:08:14Z</a10:updated>
    </item>
  </channel>
</rss>