Transfer a file from Android to a PC (not in the same network)
I think you should try dropbox / google drive.
It will be more flexible than running a separate server on your phone. You will be able to access you file from the cloud at any moment even if you don't have access to your cell or the battery is dead.