import { browse } from "./app/utils/.server/mdns/dns_sd/browse"; import { MulticastInterface } from "./app/utils/.server/mdns/mdns/multicast_interface"; for await (const service of browse({ multicastInterface: new MulticastInterface(), service: { type: "http", protocol: "tcp" }, })) { console.log("New Service!", service); } // const server = Bun.serve({ // port: 3000, // fetch(request) { // console.log(new URL(request.url).hostname); // return new Response( // ` // //
To play over a secure connection, install our local certificate:
//Double-click the .crt file → Install Certificate → Local Machine // → Place in "Trusted Root Certification Authorities"
//Double-click the .crt → Keychain Access opens → double-click the cert // → expand "Trust" → set "When using this certificate" to "Always Trust"
//Settings → Security → Install from storage → pick the .crt file
//Open the .crt link in Safari → Settings → General → VPN & Device Management // → install the profile → Settings → General → About → Certificate Trust Settings → enable it
//