I am sending a POST request using HTTPWebRequest from the client to the Cassini Web Server on the remote machine configured to accept remote requests. But, I am not specifying a file as part of the URL. I am sending the request directly to the server as in "http://172.34.142.12:8080/". However, I am unable to receive a proper response and getting a "405 Method not allowed" error. I am using Cassini 3.5. Any suggestions as to why this might be happening?
Cassini is hardcoded to not accept requests from any host other than the one running it. It's programmed this way for security reasons.
If you really need this functionality, you'll have to build your own version of it. There's a few walkthroughs around on how to do this, here's one.