Re: WinSCP.SessionRemoteException: Network error: Connection to "server" refused
Please show us your code and a session log file.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.