Skip to content

ivandisi/react-native-netscan-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-netscan-android

A simple React Native native module to scan network and find devices

Usage

import NetScan from 'react-native-netscan';

// Scan the network where the device is connected
const result = await NetScan.findDevices();

// Scan the network by Ip (for example 192.168.0.1)
const result = await NetScan.findDevicesFromIp(ip);

// Find a device Ip by MAC
const result = await NetScan.findDeviceByMAC(MAC);

const result = await NetScan.findDeviceByMACwithNetworkIP(ip, MAC);

// Port Scan by IP (TCP)
const result = await NetScan.scanOpenTCPPorts(IP,timeout);

// Port Scan by IP (UDP)
const result = await NetScan.scanOpenUDPPorts(IP,timeout);

Note, on some low end device, it could be necessary add android:largeHeap="true" in the Manifest

This project use my forked repo of stealthcopter AndroidNetworkTools, for more information https://github.com/stealthcopter/AndroidNetworkTools

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published