How to optimize a "server-client" setup?

I can set direct connections for devices that have a fixed IP on my LAN. The majority does not (phones, laptops). I am considering UPnP though.

EDIT: I enabled UPnP and it seems that everything (almost) works!

Thank you very much for the help.