mdns

How to change android device name used by NsdManager?

有些话、适合烂在心里 提交于 2019-12-10 20:15:33
问题 I am using NsdManager to register a web service on the local network. My problem is that the device name is called "android", so I can access the phone as "android.local" from my laptop. How can I change that name? I would like something more unique. 回答1: You cannot change this (on non-rooted devices). "android" is the host name of the device, ".local" is the suffix added by the mDNS (see this article). 来源: https://stackoverflow.com/questions/13796841/how-to-change-android-device-name-used-by

Chrome Sockets API Behaves Differently on Chrome OS (vs. Ubuntu, Windows)?

假装没事ソ 提交于 2019-12-10 20:04:36
问题 I have a sample Chrome packaged app which uses the Chrome sockets API to perform DNS service discovery. The heavy lifting is borrowed from the example here: https://github.com/GoogleChrome/chrome-app-samples/tree/master/mdns-browser I just use service names such as _pdl-datastream._tcp.local (instead of the default of _services._dns-sd._udp.local ). On both my Ubuntu and Windows setups (Chrome 25.0.1364.172), the app can successfully find my network printer; I can list its IP address and

How to get full host name in C#?

本小妞迷上赌 提交于 2019-12-10 17:05:28
问题 I have tried by following by it just give me single name. I want full name. Ex. my system full name is " sys101.home.homeconsultancy.lan ". Following code gives me just " sys101 ". I want full address " sys101.home.homeconsultancy.lan ". Here is my code: string hostName = System.Net.Dns.GetHostName(); How can I get full system name? 回答1: You can use System.Net.Dns.GetHostEntry var fullName = System.Net.Dns.GetHostEntry("").HostName; 来源: https://stackoverflow.com/questions/37087949/how-to-get

mDNS Support for WebRTC at Google Chrome M74

让人想犯罪 __ 提交于 2019-12-10 06:56:44
问题 Google Chrome scheduled for M74 release that the mDNS support for local ICE candidates will be involved in the browser to increase privacy. This feature is controlled by the feature flag -enable-webrtc-hide-local-ips-with-mdns ; I am trying to test the effect of mDNS support for WebRTC users on Google Chrome. I am testing with my custom WebRTC App and execute below test steps before making call; 1- WebRTC clients are logged in with using identical mDNS broadcast domains, 2- mDNS in Google

基于golang从头开始构建基于docker的微服务实战笔记

廉价感情. 提交于 2019-12-07 14:07:39
参考博文 part 1 利用gRPC protobuf定义服务 part 2 - Docker and go-micro Go-micro part 3 - docker-compose and datastores Part 4 - Authentication with JWT JWT User-service consignment-cli consignment-server Part 5 - Event brokering with Go Micro NATS配置 user-service nats连接失败 参考博文 https://ewanvalentine.io/microservices-in-golang-part-1/ 这个博文是作者微服务系统的第一篇,本学习笔记基于目前的5篇而成 part 1 利用gRPC ,protobuf定义服务 本人在学习过程中没有严格按照博文中放在github目录,而是在主目录中创建一个wdyshippy的目录,目录中文件结构如下 . ├── consignment- cli │ ├── cli .go │ ├── consignment- cli │ ├── consignment .json │ ├── Dockerfile │ └── Makefile └── consignment-service ├──

NsdManager discovery does not work on Android 9

被刻印的时光 ゝ 提交于 2019-12-07 11:29:30
I have tried for a good time now to get the NsdManager discovery function to work on Android 9. It works on any Android version prior to that without any problems. For testing purposes I use this simple code snippet and there is a permission for "INTERNET" in the manifest. var nsdManager = context.getSystemService(Context.NSD_SERVICE) as NsdManager nsdManager.discoverServices("_https._tcp", NsdManager.PROTOCOL_DNS_SD, object: NsdManager.DiscoveryListener { override fun onDiscoveryStarted(serviceType: String?) { println("DEBUG: onDiscoveryStarted $serviceType") } override fun onDiscoveryStopped

mDNS Support for WebRTC at Google Chrome M74

杀马特。学长 韩版系。学妹 提交于 2019-12-05 15:30:18
Google Chrome scheduled for M74 release that the mDNS support for local ICE candidates will be involved in the browser to increase privacy. This feature is controlled by the feature flag -enable-webrtc-hide-local-ips-with-mdns ; I am trying to test the effect of mDNS support for WebRTC users on Google Chrome. I am testing with my custom WebRTC App and execute below test steps before making call; 1- WebRTC clients are logged in with using identical mDNS broadcast domains, 2- mDNS in Google Chrome Canary is enabled via -enable-webrtc-hide-local-ips-with-mdns flag on both party, After the call

How can I query .local bonjour DNS entries?

我们两清 提交于 2019-12-03 17:37:01
问题 It's pretty straightforward to query out the guts of a DNS-SD entry via dig by asking your nameserver directly; but for multicast DNS, I'm not sure where to look. Edit: My motivation is to be able to see example DNS entries so that I can better configure static bonjour entries for my OS X machines. 回答1: The main utility is dns-sd , e.g.: % dns-sd -B _afpovertcp._tcp Browsing for _afpovertcp._tcp Timestamp A/R Flags if Domain Service Type Instance Name 20:02:23.350 Add 2 4 local. _afpovertcp.

Standard mDNS service on Windows

≡放荡痞女 提交于 2019-12-03 08:35:44
问题 Does Windows (some modern flavour) have an mDNS server installed and/or running by default? If so then how does one tell it, preferably dynamically, to start/stop advertising a new service? If there is no standard then how does one deal with the problem of conflicts trying to run multiple mDNS servers in that environment? Basically, I want to implement a service that will run on Linux, Windows and Mac OS X and which needs to advertise its zeroconf webserver location using mDNS. On Linux I

How can I query .local bonjour DNS entries?

泪湿孤枕 提交于 2019-12-03 06:24:25
It's pretty straightforward to query out the guts of a DNS-SD entry via dig by asking your nameserver directly; but for multicast DNS, I'm not sure where to look. Edit: My motivation is to be able to see example DNS entries so that I can better configure static bonjour entries for my OS X machines. The main utility is dns-sd , e.g.: % dns-sd -B _afpovertcp._tcp Browsing for _afpovertcp._tcp Timestamp A/R Flags if Domain Service Type Instance Name 20:02:23.350 Add 2 4 local. _afpovertcp._tcp. myhost Aha, the secret is the multicast address/port. For example, to query available AFP servers: dig