diff --git a/trick_source/sim_services/MonteCarlo/MonteCarlo_funcs.cpp b/trick_source/sim_services/MonteCarlo/MonteCarlo_funcs.cpp index bd5adacb..136e9358 100644 --- a/trick_source/sim_services/MonteCarlo/MonteCarlo_funcs.cpp +++ b/trick_source/sim_services/MonteCarlo/MonteCarlo_funcs.cpp @@ -277,22 +277,10 @@ int Trick::MonteCarlo::shutdown() { /** @par Detailed Design: */ int Trick::MonteCarlo::socket_init(TCDevice *in_listen_device) { - // Modify the port number based on pid number to - // prevent two sims calling tc_init at the same time - // and getting the same port number. However, if the - // user wants to use their own port numbers then do not - // modify it. if (default_port_flag) { - in_listen_device->port += getpid()%1000; + in_listen_device->port = 0; } - for (int i = 0; i < 200; ++i) { - /**