Tag: lan

使用Node.js和OSC.js在局域网内的计算机之间发送OSC

有没有人创build了一个使用Node.js在局域网内的计算机之间发送OSC的工作设置? 理想情况下,使用Colin Clark的osc.js包? 我有我认为应该是一个非常简单的例子,除了它不工作 – 我得到一个EADDRNOTAVAIL错误,这意味着远程地址不可用。 但是,我可以成功地ping其他笔记本电脑。 这里是代码和错误,供参考: 发送代码(笔记本电脑号码为192.168.0.5): var osc = require("osc"); var udp = new osc.UDPPort({ localAddress: "127.0.0.1", // shouldn't matter here localPort: 5000, // not receiving, but here's a port anyway remoteAddress: "192.168.0.7", // the other laptop remotePort: 9999 // the port to send to }); udp.open(); udp.on("ready", function () { console.log("ready"); […]