Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Remoting with C#

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
Silvio

Remoting with C#

Post by Silvio » 26 Mar 2013, 11:24

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?

User avatar
Oliver
Posts: 67
Joined: 12 Jan 2012, 10:38

Re: Remoting with C#

Post by Oliver » 27 Mar 2013, 10:32

have you pinged the machine?

Post Reply