try
                {
                   
                    out_sim = new OutSim();
                    out_sim.Connect("127.0.0.1", 25000);
                    
                    
                    MessageBox.Show("connect geçti");
                   
                    bool acaba = out_sim.IsConnected;
                    if (acaba == true)
                        MessageBox.Show("outsm baglandı");
                    else if (acaba == false)
                        MessageBox.Show("outsim baglı değil");
                   out_sim.PacketReceived += new EventHandler<OutSimEventArgs>(out_sim_PacketReceived);
                    
                }
                catch
                {
                    MessageBox.Show("connect de sıkıntı");
                } and have you another idea ?
 and have you another idea ? internal static void outsimbaglantı()
            {
                
                try
                {
                    out_sim = new OutSim();
                    out_sim.Connect("127.0.1.1", 35001);
                    MessageBox.Show("connect geçti");
                    out_sim.PacketReceived += new EventHandler<OutSimEventArgs>(out_sim_PacketReceived);
                    
                }
                catch
                {
                    MessageBox.Show("connect de sıkıntı");
                }
                bool acaba = out_sim.IsConnected;
                if (acaba == true)
                    MessageBox.Show("outsm baglandı");
                else if (acaba == false)
                    MessageBox.Show("outsim baglı değil");
            }