This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.