You mean to run /startPrivateListen via the console (where I also put the connect command)? → because here I saw unknown command in the second window with the logging.
Forward 27016 when both are in same wifi? → How is this possible. Thought that the forwarding must be configured in the router, but when all are on the same network this it not necessary.
Ping from laptop to PC, and PC to laptop working fine.
I didn’t realize you were playing on the same WiFi. In that case, you do not need to port forward. You should be able to connect using the loopback address or your local IP address.
On the host go to the COOP lobby menu and select the mission then run startPrivateListen in the external console
On the client startPrivateListen; connect 127.0.0.1 27016 (make sure that the host is actually using that net_port)
You can type net_port in the external console on the host and it should print out the value
Google how to find out your local IPv4 address if the loopback address does not work
For the client (who connect) I have to click Two players (connecting from the main menu does not work).
I also found it here: IW4 Singleplayer/Spec Ops Private Match Guide
→ sry for not reading that carefully, but maybe this thread is also useful for others.