LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2016, 09:34 AM   #1
manashpal
LQ Newbie
 
Registered: Nov 2016
Posts: 15

Rep: Reputation: Disabled
How to detect another windows machine's IP address on linux network


I have 6 pcs which runs on dual boot with windows and ubuntu. after installing ipscanner linux machines ip addresses are coming up but not the windows machine's.

I want to know if there is any way to know the windows machine's IP from my ubuntu desktop ? if so, then how ?

as I want to remotely shutdown my windows pc from linux , it is essential for me to do it from linux, but not by going to the machine and check the ip address on windows machine.

any help would be appreciated !!
 
Old 11-20-2016, 10:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Remote Desktop?
 
Old 11-20-2016, 10:37 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Can you set your router or modem to give static addresses to all your machines? That would be the easy way and you would not have to rescan each time.

If you want a better scanner instead, look at "nmap" or its graphical front end "zenmap"
 
Old 11-20-2016, 01:28 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Turbocapitalist View Post
Can you set your router or modem to give static addresses to all your machines? That would be the easy way and you would not have to rescan each time.

If you want a better scanner instead, look at "nmap" or its graphical front end "zenmap"
@ OP

if you install zenmap, be sure to have gksu installed as well so you can run it with root permissions in a user login.
 
Old 11-20-2016, 04:50 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manashpal View Post
I have 6 pcs which runs on dual boot with windows and ubuntu. after installing ipscanner linux machines ip addresses are coming up but not the windows machine's.
Biggest question I'd have would be, are the machines booted with Linux FIRST, then booted to Windows?? Because if so, your ARP table probably still has an entry for a certain IP related to that MAC address. Flushing your arp table with:
Code:
for addr in `arp -n`;do arp -nd $addr;done
..may help. Remember, even though the machines dual-boot, the hardware (and the MAC address) remain the same, regardless of the OS. You don't provide any details about your network configuration, but your DHCP server will happily dole out an address, and that lease is for the MAC address...not the OS. The next time the machine boots, the DHCP server will see the MAC and realize it already has an address associated with it..and RENEW that lease. So, Windows comes up with the Linux address from before.

Flush the arp tables, clear the DHCP leases for the machine, or give static addresses for both Linux and Windows OS'es on those pieces of hardware.
Quote:
I want to know if there is any way to know the windows machine's IP from my ubuntu desktop ? if so, then how ? as I want to remotely shutdown my windows pc from linux , it is essential for me to do it from linux, but not by going to the machine and check the ip address on windows machine. any help would be appreciated !!
Remote desktop works fine...krdc is only one Linux-based remote desktop client which will let you control a Windows box. You can also use the snmpset command (providing your Windows system has SNMP running on it, and is set up to allow setting parameters), and tell it to shut down that way.
 
1 members found this post helpful.
Old 11-21-2016, 06:40 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Look, it's YOUR network. The boxes are on the network. Can't you
1. Inspect the dhcp leases granted?
2. Print the arp cache?

and get the windows IPs that way? Once you figure out how to do what you want, it's probably scriptable.
 
Old 11-21-2016, 12:58 PM   #7
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by Turbocapitalist View Post
look at "nmap" or its graphical front end "zenmap"
Awesome, I use the crap out of nmap and hadnt heard of zenmap. Nice!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
detect IP address of a non-accessible machine m4rtin Linux - Networking 6 05-03-2012 08:25 PM
How to transfer files from a linux machine to a windows machine which are not in the same network Lakshmi Yallampalli Linux - Networking 6 07-16-2010 04:50 AM
i can detect a wired network but cannot obtain an IP address martin80 Linux - Newbie 1 06-02-2008 10:54 AM
Wireless Network won't detect IP address tubatodd Slackware 19 08-04-2005 09:46 PM
i can't browse my linux machine from windows machine's network neighbourhood window yagneshmistry Linux - Networking 2 08-10-2004 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration