Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote viewer failsed to connect #62

Open
Aricling opened this issue Sep 6, 2024 · 1 comment
Open

Remote viewer failsed to connect #62

Aricling opened this issue Sep 6, 2024 · 1 comment

Comments

@Aricling
Copy link

Aricling commented Sep 6, 2024

Hello! I'm attempting the remote viewer introduced in https://eth-ait.github.io/aitviewer/remote.html, and I use the same code as presented on my linux server:
image

But I always get failed to connect and I don't know why:
image

Could someone help pls?

@kaufManu
Copy link
Contributor

Some things to consider:

  • This script assumes that the remote viewer is running on the localhost, i.e. the same machine that this script executes. From your message I wasn't sure whether that's the case or the remote viewer is running on the linux server.
  • You will have to start a server such that the RemoteViewer can connect. You can do so via
if __name__ == "__main__":
    from aitviewer.configuration import CONFIG as C
    from aitviewer.viewer import Viewer

    C.update_conf({"server_enabled": True})
    v = Viewer()
    v.scene.floor.enabled = False
    v.run()

So if you run this on your local machine and then execute the example script on your local machine, it should be able to connect. If you run your script on the linux server, you will have to connect to the IP of your local machine.

You can find more documentation here: https://eth-ait.github.io/aitviewer/remote.html

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants