There is a possibility that your computer or laptop doesn't have a serial port if it is new. Today's latest laptops and computers don't have serial or printer ports. Universal Serial Bus (USB) ports have taken the place of the serial connectors.
Use a USB to Serial Adapter if you wish to connect to the console port on your router or switch. There's a chance the USB to Serial converter isn't plug-and-play. For these adapters, you also need to install the necessary drivers. The image below shows a common USB to Serial adapter with a console cable.