LAN only problem

When Im connected to host via internet everything works fine, but when I try to connect via LAN only it works until I try to drag and drop or clipboard paste files, it then closes out the whole session. Why does it do that when connected LAN and not when connected via username and password via internet?