LinuxQuestions.org
Help answer threads with 0 replies.
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, 10:34 AM   #1
manashpal
LQ Newbie
 
Registered: Nov 2016
Posts: 5

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, 11:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,564

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Remote Desktop?
 
Old 11-20-2016, 11:37 AM   #3
Turbocapitalist
Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 954
Blog Entries: 3

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, 02:28 PM   #4
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,061

Rep: Reputation: Disabled
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, 05:50 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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, 07:40 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,564

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
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, 01:58 PM   #7
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian, CentOS
Posts: 577

Rep: Reputation: 158Reputation: 158
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09: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 05:50 AM
i can detect a wired network but cannot obtain an IP address martin80 Linux - Newbie 1 06-02-2008 11:54 AM
Wireless Network won't detect IP address tubatodd Slackware 19 08-04-2005 10:46 PM
i can't browse my linux machine from windows machine's network neighbourhood window yagneshmistry Linux - Networking 2 08-10-2004 03:52 AM


All times are GMT -5. The time now is 10:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration