During my experience with forum boards or any sort of external help I rarely get any help so no offense, I'm not expecting to have decent help but I'll give this a shot.

I've been practicing winsock, and I ran into an issue.

This was tested on the LAN, I ran the client program in a
VirtualBox virtual machine, and enabled NAT and ticked "Cable connected", no issues with code have been detected after weeks of constant searching and researching.

Just about everything works, the communication is good and the connection is flawless, sort of...

The issue is that whenever I execute the client program BEFORE
I execute the server program, after the execution of the server program the wait will take forever. (it works fine if done vice versa)

it takes about 1 minute and 20 seconds for it to connect.

I've been thinking on creating my own time out if the server
does not respond, so I don't have to wait so long.
(I am merely posting here in case It may not work out, I am reading into it right now)

Thank you for reading this post, doing that you've already made yourself better then most of others.