Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I know which ports are open on my android device and how to close them?

Tags:

android

ports

Is there an easy way, to see which ports are open on my Android device and a way to close the open ports?

like image 966
QnA_J Avatar asked Mar 08 '14 16:03

QnA_J


1 Answers

  1. Create a wifi hotspot on your phone
  2. Connect your computer to the hotspot
  3. use ipconfig or ifconfig to know the gateway IP adresse ( ie: your phone's IP adress )
  4. Download nmap : http://nmap.org/
  5. Use the nmap command : nmap -sS -Pn -p- your_phone_ip_adress

the open TCP ports will be shown as follow :


65531 closed ports PORT
STATE SERVICE
53/tcp open domain
8187/tcp open unknown
38647/tcp open unknown
42761/tcp open unknown MAC Address: A4:9A:58:::** (Samsung Electronics Co.)


  • PS : For UDP ports use: nmap -sU -Pn -p- your_phone_ip_adress
like image 53
aboujanane Avatar answered Sep 24 '22 21:09

aboujanane