-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to getHostName in swift? #12
Comments
I also met this question, Did you solved it? |
Hi, |
Perhaps using MDNS or NBNS requests... I'll look into that. |
I have the same problem on some network. Some news about this ? |
I am facing the same issue, hostname is always empty. Any solution ?.. |
same problem here, any updates? |
I am facing the same issue, hostname getting empty on specific networks . Any solution? @Ketan-Wadyalkar @fukemy @Sofianebenabdallah |
hostname does not important than MAC address, after ios 11.4 this library does not help to get MAC, so i decided to leave |
Thanks for your significant time @fukemy .please recommend any other library for same functionality if you know about that |
sorry i am trying to find the library like that :( |
Anyone found any solution for getting host name? |
no solution here bro, the only way is searching for onvif camera ios |
@fukemy But how other apps on app store are able to get host names like Fing, Net Analyzer? |
may be it's were not blocked by Apple, i think so. |
Hey, last time I did it it was 2 years ago. Unfortunately, Apple blocked these data. I got these data from mdns. You may need to merge mmlan and mdns data |
@Sofianebenabdallah can you give me a lead how to get data from mdns/mmlan. |
I tried get hostname in this code
func lanScanDidFindNewDevice(device: Device!) {
// print("This is Device : "+"(device)")
//Adding the found device in the array
if(device.brand.containsString("Apple")){
print("DeviceInfo : "+"(device.macAddressLabel())"+"(device.hostname)\n")
}
self.connectedDevices?.append(device)
}
but hostName is "nil"
I using swift 2.2 and xcode 7 and also I am beginner developer so I need your help
please tell me how can I get HostName
The text was updated successfully, but these errors were encountered: