You don't "store a file to a server", you use a server to store files in itself (or wherever). That means you need some sort of server program (don't confuse a server hardware for the actual server softwares!). This can be a file server such as Samba, or it could be a custom web application that has a file upload function. Or any one of a number of server programs such as ftp.
Unix and Windows are alike in this regard. If you want to transfer a file into another computer using a network connection, there has to be a server program running on the target machine that's willing to receive and store the data.
An IDE is no substitute for an Intelligent Developer.