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 is it a NWEndpoint.hostPort? Are you advertising it or is it another app you are working with? You can set the required local endpoint to be 127.0.0.1 (or maybe even a Unix socket but who knows if that works)

@maxtown yes, it’s hostPort.

Trying to consume another app’s services.

@caseyliss huh that sucks. If you pass it into getaddrinfo do you get another address that does work with URLRequest? Like 127.0.0.1?

https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/getaddrinfo.3.html

Mac OS X Manual Page For getaddrinfo(3)

HTML versions of the iOS man pages.