i'am writing a client/server program with multiple UDP streams (using winsock2). The program is multithreaded and every thread needs his own stream (some of them server, some of them client). The UDP connection itself is no problem but i cannot manage to start more than one thread without crashing (they work just fine when i start only one). I gave every thread a different port but it seems that they are somehow conflicting with each other.
Can every process just get one port or something like that ? I'am running out of ideas here.