Choose style:

Author Topic: How do you find IP address of your other machines on same network? [SOLVED]  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline mattosensei

  • Member
  • ***
  • Posts: 222
  • Karma: 28
  • Linux with 'L' plates
    • View Profile
  • Peppermint version(s): 6
Hi, I've been using SSH between desktop/pi/laptop. However, I often forget what the IP address is of the other computers in the network. i.e. if I'm on my laptop as now, I want to SSH into my desktop to begin a file download (using Terminal) - I don't know how to determine the IP of the desktop machine. It is on the network and if I go file manager > go network I see it in the workgroup (it's called MS-DESKTOP) but I'm not clear how I would find out its IP so I can SSH? And I don't think I can SSH without the IP. So I have to physically go to the desktop to find out (I'm assuming through using the command: ifconfig).

Can anyone advise? I have tried to find out online but can't find the answer. I have tried to ping MS-DESKTOP but get 'unknown host'. Thanks for advice.  :)
« Last Edit: February 21, 2015, 12:53:01 pm by mattosensei »

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2185
  • Karma: 591
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How do you find IP address of your other machines on same network?
« Reply #1 on: February 21, 2015, 10:14:27 am »
Hi mattosensei,

are your machines on a network in your home? If so, then you probably have a router that has an administration/setup interface that you can call up from any of the machines. On one of the pages/panes of that interface there should be a listing of the IP address of every machine connected to the router. I hope that this helps you.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How do you find IP address of your other machines on same network?
« Reply #2 on: February 21, 2015, 11:52:21 am »
If you know the first 3 parts of the IP .. such as 192.168.0.nnn

Make sure nmap is installed:
Code: [Select]
sudo apt-get install nmap
then you could try:
Code: [Select]
nmap --ttl 1 -sP 192.168.0/24

But there's no 100% guaranteed way to probe the network for IP's .. the other PC's may not respond (for a number of reasons).



For a GUI tool, you could try Angry IP Scanner
(but as it requires downloading it from the interweb you'll have to decide for yourself if you trust the source or not)

32bit deb
http://github.com/angryziber/ipscan/releases/download/3.3.2/ipscan_3.3.2_i386.deb

64bit deb
http://github.com/angryziber/ipscan/releases/download/3.3.2/ipscan_3.3.2_amd64.deb

Homepage
http://angryip.org/

Screenshot

« Last Edit: February 21, 2015, 12:24:05 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mattosensei

  • Member
  • ***
  • Posts: 222
  • Karma: 28
  • Linux with 'L' plates
    • View Profile
  • Peppermint version(s): 6
Re: How do you find IP address of your other machines on same network?
« Reply #3 on: February 21, 2015, 12:52:48 pm »
Slim - thanks for the suggestion, appreciated. I logged into the router (lots of info!) but wasn't quite able to identify the info I needed.

Mark - many thanks for this. Have installed Angry IP Scanner and it's doing exactly what I need and I'm able to locate the IPs now, from my network. Thank you!  :D Only slight anomaly is that from my laptop I can SSH into my Pi but I get 'permission refused' when trying to SSH from my (PM) laptop to my (PM) desktop.  :o
« Last Edit: February 21, 2015, 12:55:42 pm by mattosensei »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
is ssh installed and running on the "Desktop" PC ?

what;s the output from:
Code: [Select]
sudo service ssh status
and
Code: [Select]
dpkg -l | grep ssh
on the 2 Peppermint boxes
« Last Edit: February 21, 2015, 01:07:32 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mattosensei

  • Member
  • ***
  • Posts: 222
  • Karma: 28
  • Linux with 'L' plates
    • View Profile
  • Peppermint version(s): 6
Thanks Mark - outputs as per below.

I don't get it. I have SSH'd from this desktop computer to my pi, so I don't understand the msg saying unrecognised service  :-\

Code: [Select]
ms@ms-desktop ~ $ sudo service ssh status
ssh: unrecognized service
ms@ms-desktop ~ $ dpkg -l | grep ssh
ii  libssh2-1:amd64                                             1.4.3-2                                     amd64        SSH2 client-side library
ii  openssh-client                                              1:6.6p1-2ubuntu2                            amd64        secure shell (SSH) client, for secure access to remote machines
ms@ms-desktop ~ $



Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
You can ssh OUT (into another PC) because you have the openssh-client installed, but you cannot accept INCOMING ssh connections because you don't have the openssh-server installed

install the ssh package which includes the openssh-server:
Code: [Select]
sudo apt-get install ssh
on any Peppermint PC you're going to want to ssh INTO (such as your desktop PC)

then try ssh'ing in again
« Last Edit: February 21, 2015, 01:37:53 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mattosensei

  • Member
  • ***
  • Posts: 222
  • Karma: 28
  • Linux with 'L' plates
    • View Profile
  • Peppermint version(s): 6
Thank you Mark (again)! Just done that and it's now working as I tested from the laptop.  :D


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
You're welcome :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec