Hey, if you mean an actual server where friends connect from different wifi connections, you will have to do something complex called port forwarding
if you just mean on the same wifi, go to CMD and type ipconfig, press enter and it will show addresses. you want you friends to join your IPv4 address. Hope that helps