Post

Replies

Boosts

Views

Activity

Reply to Connecting to a service found by Bonjour isn't working.
I am running the client on my iPhone. Also, doing _ssh._tcp was done because _http._tcp hadn't been working and I forgot to change it back to _ssh. I'm not trying to use ssh here. I'm no expert at this networking stuff, am I confused about how these types work? I can see the server when I run dns-sd -B _http._tcp in the terminal on the same mac. I read somewhere that I might have to set up two protocols depending on ipv4 and ipv6... Is that something I need to do? Which one would iOS be looking at?
Apr ’25
Reply to Connecting to a service found by Bonjour isn't working.
@DTS Engineer I am planning to run the server on both Windows and my MacBook. However, I've only tested connections on the MacBook so far. It is set up in Python with asyncio and zeroconf as such. async def register_service(self): self.zeroconf = AsyncZeroconf() self.service_info = AsyncServiceInfo( "_ssh._tcp.local.", f"PocketPadServer._ssh._tcp.local.", addresses=[socket.inet_aton(self.host)], port=self.port ) await self.zeroconf.async_register_service(self.service_info) async def start(self): await self.register_service() self.server = await asyncio.start_server(self.handle_client, self.host, self.port) addr = self.server.sockets[0].getsockname() logger.info(f"Server running on {addr}") async with self.server: await self.server.serve_forever()
Apr ’25