Accessing Visual Studio 2010’s built in web server remotely

So as you’re developing / debugging a Visual Studio 2010 web app, you may want to access the local web server from a remote machine. Visual Studio will be accessible locally using an address like: http://localhost:5524, but if you try from another machine on your network using the ip address ie: http://192.168.4.2:5524, you won’t be able to reach the solution.

The easiest way to get this working:
1. Download SPI Port Forward.
2. Install SPI Port Forward.
3. The config is a little backwards in my opinion, so after running SPI Port Forward, enter the remote port you want to use in the  “Local Port” text box (ie: 8080), and in the “Remote Host” enter “localhost” (usually) and in the “Remote Port” enter your local Visual Studio debugging port (in my example, 5524.
4. Click Activate

SPI Port Forward Setup

You should now be able to access your Visual Studio web app (provided it’s open and running) using http://(your machine ip)/(the port you choose above) ie: http://192.168.4.2:8080

Happy Testing!

Note: If you have any additional local or network firewalls, they may interfere with the setup and you’ll have additional steps…
Accessing Visual Studio 2010’s built in web server remotely

.Net’s System.ServiceModel.Syndication / RSS Feeds!

If you’re looking to work with RSS feeds, I suggest you checkout the .net ServiceModel.Syndication. Below is a quick example in .net 4 / VB:

 

Imports System.ServiceModel.Syndication

'In case you're using a proxy:
Dim wReq As HttpWebRequest
wReq = WebRequest.Create("http://yourRSSfeedURL")
wReq.Proxy = WebProxy.GetDefaultProxy
wReq.Proxy.Credentials = CredentialCache.DefaultCredentials
Dim xReader As XmlReader = XmlReader.Create(wReq.GetResponse.GetResponseStream)
'Create the feed from the xml loaded
Dim sFeed As SyndicationFeed = SyndicationFeed.Load(xReader)
'Loop through the results
For Each sItem As SyndicationItem In sFeed.Items
  Debug.WriteLine(sItem.Title.Text) 'Many other SyndicationItem properties available!
Next

I have compared this to other libraries and this by far is the cleanest / easiest way to pull in RSS Feeds. What are your thoughts?

.Net’s System.ServiceModel.Syndication / RSS Feeds!