Trade route

You must have a spaceport on at least one of the planets involved in a trade route in order to establish the trade route.

This means at least one of the planets must be spacefaring (5).

Trade routes cannot be established with any planet that is more than 250 lightyears from either your capital or a sector capital.