Netout: Connection reset by peer

Just for testing I implemented the naftpapp and nahttp sample codes together so I can run both the ftp and http server. I am able to compile and run the code perfectly fine with the debugger on my own board. Also, I am able to download my firmware using this setup. Therefore, I can run the ftp and http server off my flash without the debugger in place. However, I am having problem when I want to download another application thru the ftp server. It’s giving me this error: Netout: Connection reset by peep What is the problem? Is there a better way for me to have firmware download capability beside how I did it?