Page 1 of 1

Remoting with C#

Posted: 26 Mar 2013, 11:24
by Silvio
I use this code to remote with c# (Visual Studio 2010) ton Ventuz 3

Code: Select all

if (this.tb_IP != null && this.tb_IP.Text != null && this.tb_IP.Text.Length > 0)
                this.ventuz_default = RemoteScene.Connect(this.tb_IP.Text, 19200);
            if (this.ventuz_default != null)
            {
                Console.WriteLine("Verbunden!");
            }
try
                {
                    this.scene = this.ventuz_default.LoadScene(this.tb_SceneName.Text);
                    if (this.scene != null)
                    {
                        this.ventuz_default.Ports[0].SetScene(this.scene, 0, null);
                        this.ventuz_default.Ports[0].SetActive(true, 0, null);
                    }
                }
                catch (Exception ex)
                {
                    textBox1.Text += "Szene konnte nicht aktiviert werden: " + ex.Message + Environment.NewLine;
                }
When i use localhost with 127.0.0.1 it works perfect. But if i run the program on an other pc and use for example 192.168.2.42 it didn't work.

Any Idea?

Re: Remoting with C#

Posted: 27 Mar 2013, 10:32
by Oliver
have you pinged the machine?