If you're saying everything works fine with local files, but just not remote ones, then it's a mime types problem.
Have a look and see if this is useful: https://www.reddit.com/r/kde/comments/1bd313p/dolphin_not_recognizing_file_associations/
If not, there's another angle to attack.
all 6 comments