Plex on Fire TV media server issues

I Hve the Qnap NAS server and installed plex on it, however when i try to log from my plex installed on the amazon fire tv im getting a message that is not able to reach the media server and requesting manually to setup server connection!!! how do i do that, i have no clue where to get the inputs from and or how to get the port connections!
Please help