Spectrum Interview Question

How would you check if a specific port is open on a Linux machine from a remote server?