"I want to create a file in the client " you say. But that is impossible.
The reason you got it to work on your PWS is just that your client
is also your server.