see if the case is just for example how can i find its port number need immediate reply
Thanks In Advance
see if the case is just for example how can i find its port number need immediate reply
Thanks In Advance
An IP address has no single "port" — ports are properties of services running on a host at that address. In many contexts the string 10.0.0.0 is the network base (private IPv4 space per RFC 1918), not a usable host address. For a useful scan or lookup, target an actual host IP (for example 10.0.0.5) and confirm the subnet/netmask first.
As noted, local tools can show listening ports and the owning process. Prefer modern utilities that give PID/service mapping. Example checks (run as root to see all info):
sudo ss -tulpen sudo lsof -i -P -n ss and lsof show which sockets are listening and which process owns them; see the ss man page for flags and output details (ss(8) reference). lsof documents its network options on most systems (lsof man page).
For a remote host, service discovery requires scanning, which is what suggested. A simple, commonly used scan that probes every TCP port and tries to identify services is:
nmap -p- -sV 10.0.0.5 -p- scans all ports; -sV attempts service/version detection. See official Nmap docs for options and scan behavior (nmap reference). Important: scanning other networks without permission can be illegal or trigger intrusion detection; expect firewalls, NAT, and port filters to hide open services.
If no ports are found, verify the target is a host (not a network address), check for host-based firewalls or router NAT/port-forwarding, and capture traffic with tcpdump when testing from inside the same LAN to confirm probes and replies.
Jump to Post— csurfer 422Try netstat command followed by usage of some filter like grep.
Try netstat command followed by usage of some filter like grep.
If it's a remote IP and you are looking for its open ports... use nmap
something like: nmap -p 1-65535 -T4 -A -v -PE -PS22,25,80 -PA21,23,80,3389
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.