From a50c6e2bbc9415879d67a32c479f0765869a599a Mon Sep 17 00:00:00 2001 From: hello-smile6 <73048226+hello-smile6@users.noreply.github.com> Date: Thu, 14 Jul 2022 01:20:56 -0700 Subject: [PATCH] Connect guest network adapters (#704) You'll still need to assign a static IP to each VM, but they can communicate! --- examples/two_instances.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/two_instances.html b/examples/two_instances.html index 198e6cef..1af82e3a 100644 --- a/examples/two_instances.html +++ b/examples/two_instances.html @@ -64,6 +64,14 @@ window.onload = function() { emulator2.serial0_send(char); }); + emulator1.add_listener("net0-send", function(data) + { + emulator2.bus.send("net0-receive", data); + }); + emulator2.add_listener("net0-send", function(data) + { + emulator1.bus.send("net0-receive", data); + }); };