<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Aveer Ramnath</title>
    <description>The latest articles on Forem by Aveer Ramnath (@aveer28).</description>
    <link>https://forem.com/aveer28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F542842%2Fad5527f5-f352-42d3-872f-07771acdc214.png</url>
      <title>Forem: Aveer Ramnath</title>
      <link>https://forem.com/aveer28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aveer28"/>
    <language>en</language>
    <item>
      <title>Test your ASP.NET webservice locally from a remote device using iisexpress-proxy </title>
      <dc:creator>Aveer Ramnath</dc:creator>
      <pubDate>Fri, 18 Dec 2020 12:08:28 +0000</pubDate>
      <link>https://forem.com/aveer28/test-your-asp-net-webservice-locally-from-a-remote-device-using-iisexpress-proxy-1p30</link>
      <guid>https://forem.com/aveer28/test-your-asp-net-webservice-locally-from-a-remote-device-using-iisexpress-proxy-1p30</guid>
      <description>&lt;p&gt;Web services are sometimes difficult to test locally. A typical scenario is to test your local web service from a mobile device. &lt;/p&gt;

&lt;p&gt;Tools such as &lt;a href="https://www.postman.com/"&gt;Postman&lt;/a&gt; or &lt;a href="https://www.soapui.org/"&gt;SoapUI&lt;/a&gt; are very useful to mock a request, but often the request from a real client differs in subtle ways. &lt;/p&gt;

&lt;p&gt;A dotnet framework application generally runs IISExpress locally during development. In the past it has been fiddly to configure IISExpress and Visual Studio to permit requests from other devices on the same network (LAN). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/icflorescu/iisexpress-proxy"&gt;iisexpress-proxy&lt;/a&gt; makes this trivial. It allows you to proxy the requests from a specified incoming port to IIS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx iisexpress-proxy 51361 to 80
npx: installed 5 in 4.972s
IIS Express Proxy 1.5.3
Proxying http://localhost:51361 to network interfaces:
        Ethernet: 192.168.0.179:80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then all that's left to do is connect your device to the LAN and call your service at the given IP address i.e. &lt;code&gt;192.168.0.179:80&lt;/code&gt; &lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
    </item>
  </channel>
</rss>
