go-ios
go-ios copied to clipboard
Apple TV 4K (tvos 18.4) go-ios support over network
trafficstars
Hi folks, Im trying to run apple tv 4k over network as it doesn't have support for usb c to connect to my mac (M4). There are few observation and challenges that Im facing
- If I connect my apple TV directly in my mac with the LAN cable and use internet sharing then Im able to access internet and pair via xcode and can run commands via
xcrun devicectlbut in this scenario Im not able to get the device listed inidevice_idorgo-ios - In second scenario If I connect my apple TV with LAN directly in my network and also connect my mac on the same network then also Im able to pair on
xcodeand device is also visible onidevice_idandgo-iosbut not with udid but with ipv6
I was trying out few things and with some help from xcrun I can see connection details over tunnel
"connectionProperties" : {
"authenticationType" : "manualPairing",
"isMobileDeviceOnly" : false,
"lastConnectionDate" : "2025-04-02T19:53:03.066Z",
"pairingState" : "paired",
"potentialHostnames" : [
"<udid>.coredevice.local",
"<serial>.coredevice.local"
],
"transportType" : "localNetwork",
"tunnelIPAddress" : "fdf4:e4f7:cb85::1",
"tunnelState" : "connected",
"tunnelTransportProtocol" : "tcp"
}
when I did sudo lsof -i -P I can see below ports I assume these are used for the tunnel connection
remoted 332 root 4u IPv6 0x25c1b3c14c6d9798 0t0 TCP [fd7a:d570:cfa1::2]:51272 (LISTEN)
remoted 332 root 5u IPv6 0xe760d138ce642b45 0t0 TCP [fd7a:d570:cfa1::2]:51273->[fd7a:d570:cfa1::1]:53528 (ESTABLISHED)
I made some changes in go-ios to discover this device with the support of xcrun but Im trying figure out to run all other commands supported
- Is it possible to use the already created tunnel in go-ios that I see in xcrun device details?
- In connection I see
pairingState: pairedbut as in case of usb connected devices we have pairing certificates so any idea on which path the certificate might be so that I can use that in go-ios for paring check that does using the.plist?