I have several linux devices connected to the same router (of which I am not a administrator). How can I find out the ip addresses of all other devices by executing some commands in one of them?
121127
I wanted to know the names of all the devices on the network. I've already tried without great success many commands found on the web, but nothing worked like I wanted to.  Basically, when I enter my router settings, I can get the devices' names that are connected to my net. I can get it also on some applications so I guess it can be done in some way.  I want a list of names of all devices connected to my Wi-Fi network via the commandline.  Thanks    pi@raspberrypi ~ $ nmap -sP 192.168.4.0/24  Starting Nmap 6.00 ( http://nmap.org ) at 2015-03-05 13:55 UTC Nmap scan report for 192.168.4.1 Host is up (0.0055s latency). Nmap scan report for 192.168.4.2 Host is up (0.42s latency). Nmap scan report for 192.168.4.4 Host is up (0.045s latency). Nmap scan report for 192.168.4.5 Host is up (0.47s latency). Nmap scan report for 192.168.4.6 Host is up (0.0032s latency). Nmap scan report for 192.168.4.7 Host is up (0.79s latency). Nmap scan report for 192.168.4.8 Host is up (0.0024s latency). Nmap scan report for 192.168.4.9 Host is up (0.038s latency). Nmap scan report for 192.168.4.10 Host is up (0.034s latency). Nmap scan report for 192.168.4.11 Host is up (0.029s latency). Nmap scan report for 192.168.4.22 Host is up (0.12s latency). Nmap scan report for 192.168.4.27 Host is up (0.031s latency). Nmap scan report for 192.168.4.28 Host is up (0.012s latency). Nmap scan report for 192.168.4.100 Host is up (0.0038s latency). Nmap done: 256 IP addresses (14 hosts up) scanned in 49.30 seconds
47475
This may seem trivial but I'm looking for the quickest method to determine my PC's IP address within my network.   This changes regularly as I connect from one network to the next via DHCP The connection changes from wired to wireless Windows 7 PC (although ideally the perfect solution would work on all versions of Windows) Various adapters installed (e.g. VMWare, Tunnels, etc.)   I need to know this as I often run a local web server where I need to access files over the local network... and since it changes regularly I want the fastest method to retrieve the address.  My current flow is:   WindowsKey + R to open the Run dialog "cmd" + Enter to open a command prompt "ipconfig" + Enter to get the diagnostics info Scroll to or resize the window so that I can see the line in my Ethernet adapter Local Area Connection for my ipv4 Address Remember it to type elsewhere... or  Right click > select Mark > highlight the address > press Enter to copy it to the clipboard   This wasn't so bad with Windows XP when I had no additional adapters, tunnels, wireless connections etc. but the amount of data returned with this command makes it hard to pluck out.  Surely there must be a better, faster way! (bonus points if adding it to the clipboard is easily accomplished)
64782
I need to test my application when there is a change in the IP address. What should I do to change my machines IP address?  Note: The IP address for my machine is obtained automatically. It's not a static IP.
114948
I know about the "hosts" file that can map ips to static names.  But I want to do the same thing inside the router, so I can access this "hosts" file by any computer on that LAN. I have D LINL router. how can I achive my target?
39204
I run Ubuntu 14.04. Using the terminal, I did netstat -taupen to see what processes are running and I got this result:  Local Address        Foreign Address     State        User   Inode    PID/Program Name 192.168.1.3:54179    23.62.236.99:80     TIME_WAIT    0      0        -   Why is this ip connected to one of my ports? Also, ShieldsUp says port 54179 is stealthed, so what is going on?
2727
I'm in the process of maintaining a Ruby on Rails app and am looking for an easy way to find the hostname or IP address of the box I'm on (since it's a VM and new instances may have different hostnames or IP addresses). Is there a quick and easy way to do this in Ruby on Rails?  Edit: The answer below is correct but the clarification Craig provided is useful (see also provided link in answer):     The [below] code does NOT make a   connection or send any packets (to   64.233.187.99 which is google). Since UDP is a stateless protocol connect()   merely makes a system call which   figures out how to route the packets   based on the address and what   interface (and therefore IP address)   it should bind to. addr() returns an   array containing the family (AF_INET),   local port, and local address (which   is what we want) of the socket.
28553
I can find my IP address using ifconfig or hostname -i command.  But how do I find my Public IP?  (I have a static public IP but I want to find it out using unix command)
47195
How can I list all  and their associated  of the machines connected to my local network (LAN)?
75164
Our company have a IDC (Internet Data Center), and in our IDC, there are many host machines, every host has 1-3 IPs.   There is a situation, such as one host machine has 3 IPs(eg. 102.23.33.1 -> 102.23.33.3). (means in the host machine, have configured the IPs to it)  If the host machine only use 102.23.33.1, and there free out the 102.23.33.2 and 102.23.33.3. We want to find out the free IPs.  How can I do that? I tried to use the forloop to ping the whole IPs, but this is not accurate, because some host machine are baned  for ping.    EDIT  I means the host machine if has 3 IPs, and all can ping them, but the host machine only use the first IP to connect with public network, how can I find the other 2 IPs host machine do not use (or do not often use)?    EDIT-2  I mean the IPs all configured on the OS but may not be actually using them.    EDIT - 3  So, all the before, there can be understood as bellow:  I have a Router, and under it, there are many host machines, and every host machine have some IPs, and how can I record the IPs that go through the Router everyday.  Is there a tool for record the IPs which get through the Router? Or how can I realize my requirement ?
83097
How can I view a list of devices that are connected to my Apple laptop via Internet Sharing (when it's enabled)? If a list doesn't exist, does Internet Sharing log DHCP requests and if so, where? Thanks.
123287
Is it possible to catch, which program is accessing a specific IP address?   I found my computer is flooding and wish to check addresses one by one.  May be it is possible to set up some audit for this?
68959
We can use multiple IP addresses for a single interface in Linux (eg. eth0:0, eth0:1). But can we use DHCP and static IP at the same time? eth0:1 should have a static IP address and eth0:0 should be configured using DHCP.  How can we accomplish both?
120723
Is there a way to scan an entire network using ?   What I want to do is scan my network for all the devices that are currently connected to it.
33102
How can I get my own IP address and save it to a variable in a shell script?
13391
This has been asked for    before, but none recently or with the Pixel/Nougat specifically that I was able to find.  Root is unavailable, so I need a way to do this as a regular user.  I really just want to see what IP my Raspberry Pi got assigned by the Android DHCP.  Also, if there's a way to set DHCP reservations to avoid having to look it up every time, I would love to know how to do that as well.
1392
How to request a specific IP address from DHCP server?  This question also touches the topic of DHCP address reservation in a router.  Background: My home routers DHCP table only allows to create an IP address reservation of an assigned IP. It does not let me edit the table and manually assign the device an arbitrary IP for the next renew.
71216
How does one disable IPv6 completely (for all interfaces, resp. for the whole machine?  Keep in mind, I don't want any kind of GUI solution.    OS in question:   Linux Mint 18.x Cinnamon 64-bit GNU/Linux Debian 9.x Cinnamon 64-bit