I am writing a Windows desktop app that communicates with my DSLR camera via Wireless network (WLAN). I need a way to scan the network and find the camera by its MAC address or other identifying information. Nirsoft Wireless Network Watcher displays information about each device on my network. (Specifically: 'IP Address', 'Device Name', 'MAC Address', 'Network Adapter Company', etc.) Does .NET provide a way to retrieve this information from C#?
How to enumerate devices on a network from c# and .NET?
1.7k views Asked by JNygren At
1
There are 1 answers
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in WIFI
- expression 'net.sniff.http.response' did not match any filter
- WiFiNINA with Raspberry Pi Pico SDK
- How to use WiFi and Ethernet at same time?
- how to tell If Device on WLAN are using internet?
- Connect wifi service with dbus-native
- Questions about having emulated Wifi EXACTLY match host wifi in android studio
- Is there a way to gather the SSIDs of the connected networks in the background?
- Pyrad client wifi connection failure
- Is there any way to get the WiFi contention window (CW) min and max value in Linux 80211 subsystem?
- Is that possible to send a file to a zebra printer to print it by a web application on a phone using just WI-FI?
- Fetching Wifi-Scanning location system setting on Android without deprecated functions
- ESP32 (ESP IDF) Fails to change to other STA config (generated by user) at runtime
- OSError: [Errno 1] EPERM connecting to WLAN on Raspberry Pi Pico W
- How to implement DPP (wifi easy connect) with out of band credentials
- Does ESP32 support WiFi Direct?
Related Questions in WLANAPI
- WlanRegisterNotification() causes exception in KernelBase.dll when WlanCloseHandle() is called
- wlan compiled code returns error and i need to specify the password for the ssid
- WLAN_BSS_LIST is updated very slow if a Hotspot is turned off
- Wifi network channel width
- QString Spanish accent issue
- Wifi notifications in Windows
- How do i retrieve the full list of all auth/cipher pairs that an AP can accept?
- How to enumerate devices on a network from c# and .NET?
- Get the name of the connected wifi connection every 4 seconds
- WlanConnect(), how to connect to and open wireless access point
- WLAN_NOTIFICATION_MSM NotificationCode 59
- Check for EAP credentials issue
- Delphi XE8 - Native Wifi API - Wlan API - Get value from WLAN_HOSTED_NETWORK_REASON
- Connect to Enterprise WiFi on Windows issue
- WlanGetProfileList is not returning profiles created after device restart
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can check out the following blog where someone already wrote a code for something like this. https://www.maniuk.net/2016/08/get-ip-address-by-mac-address-in-csharp.html
This uses the command line arp command as an external process. I have tested it and seems to be working ok. As the code stands the mac address has to be in the format aa-bb-cc-dd-ee-ff
Alternatively, there is a Nuget Package called ArpLookup. https://www.nuget.org/packages/ArpLookup/
With this one, you have to provide the IP Address and it will return the mac address. So you would have to enumerate through your IP range and return the one that matches the mac address.
Something like this:
You need to replace the values in start and end with your IP range and then you can call the code like this.