https://github.com/dr-noob/android-netdiscovery-example
https://github.com/dr-noob/android-netdiscovery-example
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dr-noob/android-netdiscovery-example
- Owner: Dr-Noob
- Created: 2019-01-16T16:59:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T17:18:40.000Z (over 6 years ago)
- Last Synced: 2025-02-01T12:28:49.368Z (8 months ago)
- Language: Java
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android-NetDiscovery-Example
This is just a very simple app (which can be used as example) using native Android network service discovery ([link](https://developer.android.com/training/connect-devices-wirelessly/nsd)) using __MDNS__. This means that two android devices running this app can be found each other, so they can establish a connection to acomplish any objective.## Install
Just download the repo, open it with Android Studio and compile the app.## Usage
To discover other devices in your network, you need to "scan" the network. This is done by using the "Start Discover" button (you can stop this service any time with "Stop Discover"). In the same way, if you would like to make a device visible to other devices, you need to
register it in the network with "Start register". Finally, "List" button
lets you see which devices have you disovered in the network, showing
its IP adress and port (which is defined at the source code)
![]()