From a comment:
The Amazon listing says it’s for connecting a PC to an “AT modem.”
Then this is, as cup and mnem suspect the issue.
I don’t know if it’s a null modem cable.
If it's to connect a modem, then it's most likely not a Cross-Over Cable.
So either get a null-modem, or a cross-over cable (*1).
When he standard for wiring of communication devices were made, the most simple cable, that is a straight on-on-one, was assigned the most common use case, the connection between a terminal(*2) and its communication hardware (*3).
Since roles are fixed, any side specific wiring, i.e. what wire to use for sending and receiving for each signal, can be made within each device. Saves cost and avoids confusion what end to use (*4).
Same reason printer cables (considered to be within a DTE) are straight as well.
Now what you want to do is connecting two terminals, two devices that have the same connector (*5) and the same pinout, so any cable needed to connect them must swap all corresponding signals.
*1 - Or change it to be one, like mnem suggests. Although I doubt that the connectors are anything but sealed. So in an age of Alibaba and DHL, buying one might be the most simple way.
*2 - DTE, Data Terminal Equipment, read a PC or Terminal
*3 - DCE, Data Communication Equipment, whatever made the network connection. In simple cases a modem.
*4 - Just imagine having pulled a 40m serial cable thru desks and walls just to realize you the wrong end. Doesn't happen with straight cables and symmetric connectors
Ofc, the standard wouldn't be one made by a committee if it didn't screw up right away by defining DTE to have a male and DCE to have a female connector. So one could still end up with that issue - except, back then connectors were rarely sealed, so depending on the effort to lay that cable again, one rather used a gender bender on each end, or, last resort a soldering iron to swap the connectors.
Some terminal suppliers, aware of this issue, used female connectors build in to the terminal and defined a male-male cable as being part of the terminal, thus making it symmetric in all practical aspect.
*5 - The team designing the PC of course complicated this by making the standard serial a DE9 connector. Of course, they never thought about connecting a modem there, as any user serious about communications would buy an IBM Asynchronous Communications Adapter with a 'real' DB25 using RS232 to do so, not the simplified one intended for other devices, like printers.