You'll want to remove the port number from the net.pipe URI. Try changing line 41 to:
var baseNamedPipeUri = new Uri("net.pipe://MyWorkstation/");
or if you need a more descriptive pipe name:
var baseNamedPipeUri = new Uri("net.pipe://MyWorkstation_51301/");
This blog post has some helpful insight on this issue.