Create and join session in c++

Hello,buddy.
Check if your computer is connected to a network cable,if not,it is normal that you can not join session. this function will get your computer’s ipv4 to locate the host,you won’t get a ip address if network cable is not connected.