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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-20-2016, 10:34 AM
|
#1
|
LQ Newbie
Registered: Nov 2016
Posts: 15
Rep:
|
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 !!
|
|
|
11-20-2016, 11:25 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,081
|
Remote Desktop?
|
|
|
11-20-2016, 11:37 AM
|
#3
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,598
|
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"
|
|
|
11-20-2016, 02:28 PM
|
#4
|
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
|
Quote:
Originally Posted by Turbocapitalist
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.
|
|
|
11-20-2016, 05:50 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,329
|
Quote:
Originally Posted by manashpal
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.
|
11-21-2016, 07:40 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,081
|
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.
|
|
|
11-21-2016, 01:58 PM
|
#7
|
Member
Registered: May 2011
Location: Texas
Distribution: Debian/Ubuntu,CentOS
Posts: 848
|
Quote:
Originally Posted by Turbocapitalist
look at "nmap" or its graphical front end "zenmap"
|
Awesome, I use the crap out of nmap and hadnt heard of zenmap. Nice!
|
|
|
All times are GMT -5. The time now is 10:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|