a couple issues
1) the desktop and client must be on the same network
2) the server should firewall ports 80 and 443 open
3) to use https the servers ssl certificate must be trusted by the client
the sample uses https. you will need to create a self signed cert. load it into IIS for the site and trust the cert on the client. or just switch to http.