Need help! don't know what to do

Try to hosting a server from my pc. I am hosting it from my own computer. Tried the optiions that offer on the internet and youtube to configure the server, It doesn’t work. We just want to play with a friend in Co-op. Need more fresh information on how to set up and run your server. Maybe someone’s got a step by step manual.
Any help is much appreciated!!!