I'm out of my depth.

I'm trying to make a URL GET request to a service I'm discovering via Bonjour.

I have gotten a NWBrowser.Result, and I've gotten an NWEndpoint.

The endpoint is an IPv6 link local address.

How the hell do I make a URLRequest to this? I don't seem to be able to construct a URL from what I've got, but I suspect I'm holding it wrong.

Again, this is probably simple, but I'm way out of my depth here.

@caseyliss In a browser you would enter an IPV6 address like this: https://[XXXXXIPV6ADDRESS]/index.html

Obviously replace XXXXXIPV6ADDRESS with your IPV6 address. Notice the [] in the URL.

@gc_headtech Tried that. Didn't work.

(Again, VERY likely I'm holding it wrong)

@caseyliss Does it work in safari?
@caseyliss also foudn this: https://developer.apple.com/forums/thread/711196 It appears that this should work in 16.
"According to RFC 2732 Section 2, IPv6 addresses must be enclosed in [ and ] when it’s part of an URL. In this particular case, the host should be ipv6URLComponents.host = “[2001:0000:3238:dfe1:0063:0000:0000:fefb]”.”
URLComponent does not accept IPv6 … | Apple Developer Forums

@gc_headtech you have to do that? I guess I’ve never seen an IPv6 address in a URL before. Didn’t know that.