How can I determine if a machine is online without using ping?Have internet but cannot ping ip addressCan ping machine by IP but not by nameWindows Server 2008 machine only responds to PING from some machinesWestell 7500 - unable to reach static IPs from external networkCannot ping linux (RedHat) machine by hostnameSonicwall NSA2400 - No internet accessCan ping out but not inCannot ping any machine on local network (embedded linux device)Mellanox dual-port HCA, can ping if ib0 pair connected but not if only ib1 pair connectedBandwidth measurement using pingCheck a machine's up or down status without using ping
What is the right way to float a home lab?
Why is Colorado so different politically from nearby states?
Is the capacitor drawn or wired wrongly?
Traffic law UK, pedestrians
Why were the Night's Watch required to be celibate?
What are the words for people who cause trouble believing they know better?
I wrote a scene that the majority of my readers loved. How do I get back to that place while writing my new book?
Pros and cons of writing a book review?
Applicants clearly not having the skills they advertise
correct term describing the action of sending a brand-new ship out into its first seafaring trip
PhD student with mental health issues and bad performance
Is the decompression of compressed and encrypted data without decryption also theoretically impossible?
Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up
How to decline physical affection from a child whose parents are pressuring them?
Company is asking me to work from overseas, but wants me to take a paycut
Do I include animal companions when calculating difficulty of an encounter?
What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?
Personalization conditions switching doesn`t work in Experience Editor (9.1.0, Initial Release)
The term for the person/group a political party aligns themselves with to appear concerned about the general public
Shrink exponential fraction argument
X-shaped crossword
Align text within align
Responsibility for visa checking
What happens to foam insulation board after you pour concrete slab?
How can I determine if a machine is online without using ping?
Have internet but cannot ping ip addressCan ping machine by IP but not by nameWindows Server 2008 machine only responds to PING from some machinesWestell 7500 - unable to reach static IPs from external networkCannot ping linux (RedHat) machine by hostnameSonicwall NSA2400 - No internet accessCan ping out but not inCannot ping any machine on local network (embedded linux device)Mellanox dual-port HCA, can ping if ib0 pair connected but not if only ib1 pair connectedBandwidth measurement using pingCheck a machine's up or down status without using ping
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I used to use an application that could ping or maybe run a port scan on a machine even if the machine was configured to not allow it.
I am currently trying to ping a remote machine on our WAN, but I have configured the machine to not allow ping. Is there something similar to ping that I can use?
Again, this a machine located in another city that is part of our wan.
ping
add a comment |
I used to use an application that could ping or maybe run a port scan on a machine even if the machine was configured to not allow it.
I am currently trying to ping a remote machine on our WAN, but I have configured the machine to not allow ping. Is there something similar to ping that I can use?
Again, this a machine located in another city that is part of our wan.
ping
add a comment |
I used to use an application that could ping or maybe run a port scan on a machine even if the machine was configured to not allow it.
I am currently trying to ping a remote machine on our WAN, but I have configured the machine to not allow ping. Is there something similar to ping that I can use?
Again, this a machine located in another city that is part of our wan.
ping
I used to use an application that could ping or maybe run a port scan on a machine even if the machine was configured to not allow it.
I am currently trying to ping a remote machine on our WAN, but I have configured the machine to not allow ping. Is there something similar to ping that I can use?
Again, this a machine located in another city that is part of our wan.
ping
ping
edited May 28 '09 at 14:09
Brent
14.6k166196
14.6k166196
asked May 28 '09 at 13:52
cop1152cop1152
2,16631832
2,16631832
add a comment |
add a comment |
16 Answers
16
active
oldest
votes
If your using XP/2003+ (this includes Vista/2008/7), then you can use the Win32_PingStatus. The machines inwhich is running the script code is the only system which needs to be XP/2003+, and it works just like using Ping.exe, only it's not using ping.exe so it should act as a loophole to your security setting which does not allow the execution of ping.exe.
strComputer = "192.168.1.1"
Set objWMIService = GetObject("winmgmts:\.rootcimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PingStatus " & _
"Where Address = '" & strComputer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
WScript.Echo "Reply received."
End If
Next
See the Scripting Guy article for more info on how to use Win32_PingStatus:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0914.mspx
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
add a comment |
You can telnet to an open tcp port on the machine. For instance, if the machine is a web server, and has port 80 open, just:
telnet ip.ad.dre.ss 80
This will work even on encrypted ports (although you won't be able to understand the data)
Some other ports to try are:
- 443 for an https server
- 22 for ssh
(there is a list of ports/services in /etc/services on linux machines)
add a comment |
Run an SNMP agent on the remote machine, and use a manager to read one of the values out of the standard MIB.
add a comment |
If you have not firewalls and routers in the way, i.e., if you're on the same segment as the host you're trying to check - most of the solutions above are a little exhaustive imho.
It doesn't matter what port you connect to, and in fact, if you connect to a port that's unlikely to have a service running, you can get the job done without being detected.
How?
You can use any tool you like, but we can just use telnet...
% telnet <host> 313373
Trying 10.211.55.3...
telnet: connect to address 10.211.55.3: Connection refused
telnet: Unable to connect to remote host
%
This should happen immediately, unless the host is dropping packets. What's actually happening is that the TCP/IP stack on the host is sending you back a TCP segment with the RST bit set - i.e. terminating your SYN packet.
The fact that you received a RST packet means that there is indeed a host up at the other end, and as a bonus - you've done so undetected (The TCP/IP had no upper-layer application to talk to about this connection).
Rather than telnet however, I'd probably use something like scapy, write up something that looks for the RST flag and let's you know.
Just to complete this, if there is no host on the IP that you try - it will hang for a little while, and the timeout - the same thing that would happen if the receiving host had a firewall with a drop filter.
If firewalls are involved, then as others have suggested, make use of tools such as nmap
and whatever else.
add a comment |
If you have access to another machine on the same LAN as your target machine, you can use arping.
Arping works by sending ARP packets targeting the machine, this works perfectly because you cannot block arp packets if you want to use the network (well, you can set up static arp tables everywhere :D ) But the downside is you have to be within the same LAN as your arping target.
add a comment |
Are there any services available on the machine? One way to see if a machine is there is to use the telnet client to connect to it, but changing the port you need to hit.
So lets say the machine is running MS SQL which runs on port 1433 by default. You use the following command
telnet machine-name-address 1433
If Telnet connects the the machine is up and running, Doesn't mean it's running properly, but listening to that port nonetheless
add a comment |
for i in seq 1 65535
; do tcpconnect -v remotehost $i ; done
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
add a comment |
nmap -T5 -sS -P0 ho.st.ip.addr
That will see what's available port wise on that machine.. Recommend installing cygwin if you are running on windows or don't have access to a linux machine.
add a comment |
softperfect network scanner.
google for it.
I use it alot. Works great
add a comment |
Google for "nmap". I use this all the time. Great for verifying your firewalls are operating as expected too. Plus I believe it was referenced in a Matrix movie which makes it doubly awesome.
add a comment |
You could have the machine send an snmp trap (packet) once a minute to a remote monitor and set up a rule to monitor that you were receiving the trap each minute.
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
add a comment |
The simple solution to this issue will be to use netcat utility. Only prerequisite for this scenario is that one should be aware of at least one port which is open on that remote machine.
nc -nv ip_address port_number
The above command will give a result, which would determine if the said port is open or not and hence the availability of the machine
add a comment |
Ping is ICMP, if you blocked ICMP you can't ping.
You might still be able to test TCP or UDP ports if you are accepting TCP/UDP connections.
If you are running your test on containers, which lack ping, nc, telnet and other tools, you can use this trick:
(echo >/dev/tcp/$host/$port) &>/dev/null && echo "open" || echo "closed"
This will attempt to connect through tcp/udp through the device (wow, I know) and echo "open" if the port is open or "closed" if it is closed.
It will hang for a while before echoing "close" when that is the case.
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
add a comment |
You can install a simple web server and use a web page saying "ONLINE".
The you only have to connect to it wherever you want
Of course you need a statin ip or services linke dyndns
add a comment |
A very simple approach is to telnet to a TCP port that should be open on the server, ie:
telnet theServerHostname 80
Although if the service is down you would get the same result as if the host was down.
There are all sorts of scans that can be done with nmap, learn about them on nmap's site and you should become an expert on how to test if a host is up. These include using protocols other than icmp (ping), such as TCP (as telnet does) and UDP.
Also, if you want something that includes the ability to connect to udp, that is similar to telnet in this sense, consider netcat.
add a comment |
Microsoft's own PortQry Command Line Port Scanner Version 2.0
I use it to test SQL Server ports often
open port = LISTENING or NOT LISTENING
firewall = FILTERED
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f13780%2fhow-can-i-determine-if-a-machine-is-online-without-using-ping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
16 Answers
16
active
oldest
votes
16 Answers
16
active
oldest
votes
active
oldest
votes
active
oldest
votes
If your using XP/2003+ (this includes Vista/2008/7), then you can use the Win32_PingStatus. The machines inwhich is running the script code is the only system which needs to be XP/2003+, and it works just like using Ping.exe, only it's not using ping.exe so it should act as a loophole to your security setting which does not allow the execution of ping.exe.
strComputer = "192.168.1.1"
Set objWMIService = GetObject("winmgmts:\.rootcimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PingStatus " & _
"Where Address = '" & strComputer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
WScript.Echo "Reply received."
End If
Next
See the Scripting Guy article for more info on how to use Win32_PingStatus:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0914.mspx
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
add a comment |
If your using XP/2003+ (this includes Vista/2008/7), then you can use the Win32_PingStatus. The machines inwhich is running the script code is the only system which needs to be XP/2003+, and it works just like using Ping.exe, only it's not using ping.exe so it should act as a loophole to your security setting which does not allow the execution of ping.exe.
strComputer = "192.168.1.1"
Set objWMIService = GetObject("winmgmts:\.rootcimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PingStatus " & _
"Where Address = '" & strComputer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
WScript.Echo "Reply received."
End If
Next
See the Scripting Guy article for more info on how to use Win32_PingStatus:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0914.mspx
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
add a comment |
If your using XP/2003+ (this includes Vista/2008/7), then you can use the Win32_PingStatus. The machines inwhich is running the script code is the only system which needs to be XP/2003+, and it works just like using Ping.exe, only it's not using ping.exe so it should act as a loophole to your security setting which does not allow the execution of ping.exe.
strComputer = "192.168.1.1"
Set objWMIService = GetObject("winmgmts:\.rootcimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PingStatus " & _
"Where Address = '" & strComputer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
WScript.Echo "Reply received."
End If
Next
See the Scripting Guy article for more info on how to use Win32_PingStatus:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0914.mspx
If your using XP/2003+ (this includes Vista/2008/7), then you can use the Win32_PingStatus. The machines inwhich is running the script code is the only system which needs to be XP/2003+, and it works just like using Ping.exe, only it's not using ping.exe so it should act as a loophole to your security setting which does not allow the execution of ping.exe.
strComputer = "192.168.1.1"
Set objWMIService = GetObject("winmgmts:\.rootcimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PingStatus " & _
"Where Address = '" & strComputer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
WScript.Echo "Reply received."
End If
Next
See the Scripting Guy article for more info on how to use Win32_PingStatus:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0914.mspx
edited May 28 '09 at 14:13
answered May 28 '09 at 14:05
mrTomahawkmrTomahawk
1,0591917
1,0591917
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
add a comment |
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
2
2
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
My understanding is that the remote host has been configured not to respond to ICMP Echo Request packets, not that ping.exe on the localhost has been disabled. As such this isn't going to do anything different to running ping.exe, which is to say, nothing.
– David Pashley
Jun 9 '09 at 23:12
add a comment |
You can telnet to an open tcp port on the machine. For instance, if the machine is a web server, and has port 80 open, just:
telnet ip.ad.dre.ss 80
This will work even on encrypted ports (although you won't be able to understand the data)
Some other ports to try are:
- 443 for an https server
- 22 for ssh
(there is a list of ports/services in /etc/services on linux machines)
add a comment |
You can telnet to an open tcp port on the machine. For instance, if the machine is a web server, and has port 80 open, just:
telnet ip.ad.dre.ss 80
This will work even on encrypted ports (although you won't be able to understand the data)
Some other ports to try are:
- 443 for an https server
- 22 for ssh
(there is a list of ports/services in /etc/services on linux machines)
add a comment |
You can telnet to an open tcp port on the machine. For instance, if the machine is a web server, and has port 80 open, just:
telnet ip.ad.dre.ss 80
This will work even on encrypted ports (although you won't be able to understand the data)
Some other ports to try are:
- 443 for an https server
- 22 for ssh
(there is a list of ports/services in /etc/services on linux machines)
You can telnet to an open tcp port on the machine. For instance, if the machine is a web server, and has port 80 open, just:
telnet ip.ad.dre.ss 80
This will work even on encrypted ports (although you won't be able to understand the data)
Some other ports to try are:
- 443 for an https server
- 22 for ssh
(there is a list of ports/services in /etc/services on linux machines)
edited May 28 '09 at 14:08
answered May 28 '09 at 13:57
Brent Brent
14.6k166196
14.6k166196
add a comment |
add a comment |
Run an SNMP agent on the remote machine, and use a manager to read one of the values out of the standard MIB.
add a comment |
Run an SNMP agent on the remote machine, and use a manager to read one of the values out of the standard MIB.
add a comment |
Run an SNMP agent on the remote machine, and use a manager to read one of the values out of the standard MIB.
Run an SNMP agent on the remote machine, and use a manager to read one of the values out of the standard MIB.
answered May 28 '09 at 14:01
user640
add a comment |
add a comment |
If you have not firewalls and routers in the way, i.e., if you're on the same segment as the host you're trying to check - most of the solutions above are a little exhaustive imho.
It doesn't matter what port you connect to, and in fact, if you connect to a port that's unlikely to have a service running, you can get the job done without being detected.
How?
You can use any tool you like, but we can just use telnet...
% telnet <host> 313373
Trying 10.211.55.3...
telnet: connect to address 10.211.55.3: Connection refused
telnet: Unable to connect to remote host
%
This should happen immediately, unless the host is dropping packets. What's actually happening is that the TCP/IP stack on the host is sending you back a TCP segment with the RST bit set - i.e. terminating your SYN packet.
The fact that you received a RST packet means that there is indeed a host up at the other end, and as a bonus - you've done so undetected (The TCP/IP had no upper-layer application to talk to about this connection).
Rather than telnet however, I'd probably use something like scapy, write up something that looks for the RST flag and let's you know.
Just to complete this, if there is no host on the IP that you try - it will hang for a little while, and the timeout - the same thing that would happen if the receiving host had a firewall with a drop filter.
If firewalls are involved, then as others have suggested, make use of tools such as nmap
and whatever else.
add a comment |
If you have not firewalls and routers in the way, i.e., if you're on the same segment as the host you're trying to check - most of the solutions above are a little exhaustive imho.
It doesn't matter what port you connect to, and in fact, if you connect to a port that's unlikely to have a service running, you can get the job done without being detected.
How?
You can use any tool you like, but we can just use telnet...
% telnet <host> 313373
Trying 10.211.55.3...
telnet: connect to address 10.211.55.3: Connection refused
telnet: Unable to connect to remote host
%
This should happen immediately, unless the host is dropping packets. What's actually happening is that the TCP/IP stack on the host is sending you back a TCP segment with the RST bit set - i.e. terminating your SYN packet.
The fact that you received a RST packet means that there is indeed a host up at the other end, and as a bonus - you've done so undetected (The TCP/IP had no upper-layer application to talk to about this connection).
Rather than telnet however, I'd probably use something like scapy, write up something that looks for the RST flag and let's you know.
Just to complete this, if there is no host on the IP that you try - it will hang for a little while, and the timeout - the same thing that would happen if the receiving host had a firewall with a drop filter.
If firewalls are involved, then as others have suggested, make use of tools such as nmap
and whatever else.
add a comment |
If you have not firewalls and routers in the way, i.e., if you're on the same segment as the host you're trying to check - most of the solutions above are a little exhaustive imho.
It doesn't matter what port you connect to, and in fact, if you connect to a port that's unlikely to have a service running, you can get the job done without being detected.
How?
You can use any tool you like, but we can just use telnet...
% telnet <host> 313373
Trying 10.211.55.3...
telnet: connect to address 10.211.55.3: Connection refused
telnet: Unable to connect to remote host
%
This should happen immediately, unless the host is dropping packets. What's actually happening is that the TCP/IP stack on the host is sending you back a TCP segment with the RST bit set - i.e. terminating your SYN packet.
The fact that you received a RST packet means that there is indeed a host up at the other end, and as a bonus - you've done so undetected (The TCP/IP had no upper-layer application to talk to about this connection).
Rather than telnet however, I'd probably use something like scapy, write up something that looks for the RST flag and let's you know.
Just to complete this, if there is no host on the IP that you try - it will hang for a little while, and the timeout - the same thing that would happen if the receiving host had a firewall with a drop filter.
If firewalls are involved, then as others have suggested, make use of tools such as nmap
and whatever else.
If you have not firewalls and routers in the way, i.e., if you're on the same segment as the host you're trying to check - most of the solutions above are a little exhaustive imho.
It doesn't matter what port you connect to, and in fact, if you connect to a port that's unlikely to have a service running, you can get the job done without being detected.
How?
You can use any tool you like, but we can just use telnet...
% telnet <host> 313373
Trying 10.211.55.3...
telnet: connect to address 10.211.55.3: Connection refused
telnet: Unable to connect to remote host
%
This should happen immediately, unless the host is dropping packets. What's actually happening is that the TCP/IP stack on the host is sending you back a TCP segment with the RST bit set - i.e. terminating your SYN packet.
The fact that you received a RST packet means that there is indeed a host up at the other end, and as a bonus - you've done so undetected (The TCP/IP had no upper-layer application to talk to about this connection).
Rather than telnet however, I'd probably use something like scapy, write up something that looks for the RST flag and let's you know.
Just to complete this, if there is no host on the IP that you try - it will hang for a little while, and the timeout - the same thing that would happen if the receiving host had a firewall with a drop filter.
If firewalls are involved, then as others have suggested, make use of tools such as nmap
and whatever else.
answered May 28 '09 at 14:47
XerxesXerxes
3,57322233
3,57322233
add a comment |
add a comment |
If you have access to another machine on the same LAN as your target machine, you can use arping.
Arping works by sending ARP packets targeting the machine, this works perfectly because you cannot block arp packets if you want to use the network (well, you can set up static arp tables everywhere :D ) But the downside is you have to be within the same LAN as your arping target.
add a comment |
If you have access to another machine on the same LAN as your target machine, you can use arping.
Arping works by sending ARP packets targeting the machine, this works perfectly because you cannot block arp packets if you want to use the network (well, you can set up static arp tables everywhere :D ) But the downside is you have to be within the same LAN as your arping target.
add a comment |
If you have access to another machine on the same LAN as your target machine, you can use arping.
Arping works by sending ARP packets targeting the machine, this works perfectly because you cannot block arp packets if you want to use the network (well, you can set up static arp tables everywhere :D ) But the downside is you have to be within the same LAN as your arping target.
If you have access to another machine on the same LAN as your target machine, you can use arping.
Arping works by sending ARP packets targeting the machine, this works perfectly because you cannot block arp packets if you want to use the network (well, you can set up static arp tables everywhere :D ) But the downside is you have to be within the same LAN as your arping target.
answered May 28 '09 at 23:03
hayalcihayalci
3,22012031
3,22012031
add a comment |
add a comment |
Are there any services available on the machine? One way to see if a machine is there is to use the telnet client to connect to it, but changing the port you need to hit.
So lets say the machine is running MS SQL which runs on port 1433 by default. You use the following command
telnet machine-name-address 1433
If Telnet connects the the machine is up and running, Doesn't mean it's running properly, but listening to that port nonetheless
add a comment |
Are there any services available on the machine? One way to see if a machine is there is to use the telnet client to connect to it, but changing the port you need to hit.
So lets say the machine is running MS SQL which runs on port 1433 by default. You use the following command
telnet machine-name-address 1433
If Telnet connects the the machine is up and running, Doesn't mean it's running properly, but listening to that port nonetheless
add a comment |
Are there any services available on the machine? One way to see if a machine is there is to use the telnet client to connect to it, but changing the port you need to hit.
So lets say the machine is running MS SQL which runs on port 1433 by default. You use the following command
telnet machine-name-address 1433
If Telnet connects the the machine is up and running, Doesn't mean it's running properly, but listening to that port nonetheless
Are there any services available on the machine? One way to see if a machine is there is to use the telnet client to connect to it, but changing the port you need to hit.
So lets say the machine is running MS SQL which runs on port 1433 by default. You use the following command
telnet machine-name-address 1433
If Telnet connects the the machine is up and running, Doesn't mean it's running properly, but listening to that port nonetheless
answered May 28 '09 at 13:57
BrettskiBrettski
58221629
58221629
add a comment |
add a comment |
for i in seq 1 65535
; do tcpconnect -v remotehost $i ; done
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
add a comment |
for i in seq 1 65535
; do tcpconnect -v remotehost $i ; done
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
add a comment |
for i in seq 1 65535
; do tcpconnect -v remotehost $i ; done
for i in seq 1 65535
; do tcpconnect -v remotehost $i ; done
answered May 28 '09 at 14:02
VishVish
1484
1484
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
add a comment |
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
didn't know about tcpconnect. For the people looking for it: packages.debian.org/tcputils
– serverhorror
Jun 9 '09 at 22:53
add a comment |
nmap -T5 -sS -P0 ho.st.ip.addr
That will see what's available port wise on that machine.. Recommend installing cygwin if you are running on windows or don't have access to a linux machine.
add a comment |
nmap -T5 -sS -P0 ho.st.ip.addr
That will see what's available port wise on that machine.. Recommend installing cygwin if you are running on windows or don't have access to a linux machine.
add a comment |
nmap -T5 -sS -P0 ho.st.ip.addr
That will see what's available port wise on that machine.. Recommend installing cygwin if you are running on windows or don't have access to a linux machine.
nmap -T5 -sS -P0 ho.st.ip.addr
That will see what's available port wise on that machine.. Recommend installing cygwin if you are running on windows or don't have access to a linux machine.
answered May 28 '09 at 14:17
DanDan
8221827
8221827
add a comment |
add a comment |
softperfect network scanner.
google for it.
I use it alot. Works great
add a comment |
softperfect network scanner.
google for it.
I use it alot. Works great
add a comment |
softperfect network scanner.
google for it.
I use it alot. Works great
softperfect network scanner.
google for it.
I use it alot. Works great
answered May 28 '09 at 15:24
therulebookmantherulebookman
290249
290249
add a comment |
add a comment |
Google for "nmap". I use this all the time. Great for verifying your firewalls are operating as expected too. Plus I believe it was referenced in a Matrix movie which makes it doubly awesome.
add a comment |
Google for "nmap". I use this all the time. Great for verifying your firewalls are operating as expected too. Plus I believe it was referenced in a Matrix movie which makes it doubly awesome.
add a comment |
Google for "nmap". I use this all the time. Great for verifying your firewalls are operating as expected too. Plus I believe it was referenced in a Matrix movie which makes it doubly awesome.
Google for "nmap". I use this all the time. Great for verifying your firewalls are operating as expected too. Plus I believe it was referenced in a Matrix movie which makes it doubly awesome.
answered May 28 '09 at 16:05
NeobyteNeobyte
2,9722228
2,9722228
add a comment |
add a comment |
You could have the machine send an snmp trap (packet) once a minute to a remote monitor and set up a rule to monitor that you were receiving the trap each minute.
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
add a comment |
You could have the machine send an snmp trap (packet) once a minute to a remote monitor and set up a rule to monitor that you were receiving the trap each minute.
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
add a comment |
You could have the machine send an snmp trap (packet) once a minute to a remote monitor and set up a rule to monitor that you were receiving the trap each minute.
You could have the machine send an snmp trap (packet) once a minute to a remote monitor and set up a rule to monitor that you were receiving the trap each minute.
answered May 28 '09 at 23:10
Stuart WoodwardStuart Woodward
68331126
68331126
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
add a comment |
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
1
1
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
This is indeed a good answer and a very correct one. SNMP is low level enough and can be configured on windows systems. Its the only alternative to ICMP and in fact routinely used by network engineers for monitoring routers and systems over WAN and LAN
– Abhishek Dujari
Sep 28 '12 at 16:19
add a comment |
The simple solution to this issue will be to use netcat utility. Only prerequisite for this scenario is that one should be aware of at least one port which is open on that remote machine.
nc -nv ip_address port_number
The above command will give a result, which would determine if the said port is open or not and hence the availability of the machine
add a comment |
The simple solution to this issue will be to use netcat utility. Only prerequisite for this scenario is that one should be aware of at least one port which is open on that remote machine.
nc -nv ip_address port_number
The above command will give a result, which would determine if the said port is open or not and hence the availability of the machine
add a comment |
The simple solution to this issue will be to use netcat utility. Only prerequisite for this scenario is that one should be aware of at least one port which is open on that remote machine.
nc -nv ip_address port_number
The above command will give a result, which would determine if the said port is open or not and hence the availability of the machine
The simple solution to this issue will be to use netcat utility. Only prerequisite for this scenario is that one should be aware of at least one port which is open on that remote machine.
nc -nv ip_address port_number
The above command will give a result, which would determine if the said port is open or not and hence the availability of the machine
answered Apr 5 '18 at 3:29
MVnD3XMVnD3X
111
111
add a comment |
add a comment |
Ping is ICMP, if you blocked ICMP you can't ping.
You might still be able to test TCP or UDP ports if you are accepting TCP/UDP connections.
If you are running your test on containers, which lack ping, nc, telnet and other tools, you can use this trick:
(echo >/dev/tcp/$host/$port) &>/dev/null && echo "open" || echo "closed"
This will attempt to connect through tcp/udp through the device (wow, I know) and echo "open" if the port is open or "closed" if it is closed.
It will hang for a while before echoing "close" when that is the case.
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
add a comment |
Ping is ICMP, if you blocked ICMP you can't ping.
You might still be able to test TCP or UDP ports if you are accepting TCP/UDP connections.
If you are running your test on containers, which lack ping, nc, telnet and other tools, you can use this trick:
(echo >/dev/tcp/$host/$port) &>/dev/null && echo "open" || echo "closed"
This will attempt to connect through tcp/udp through the device (wow, I know) and echo "open" if the port is open or "closed" if it is closed.
It will hang for a while before echoing "close" when that is the case.
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
add a comment |
Ping is ICMP, if you blocked ICMP you can't ping.
You might still be able to test TCP or UDP ports if you are accepting TCP/UDP connections.
If you are running your test on containers, which lack ping, nc, telnet and other tools, you can use this trick:
(echo >/dev/tcp/$host/$port) &>/dev/null && echo "open" || echo "closed"
This will attempt to connect through tcp/udp through the device (wow, I know) and echo "open" if the port is open or "closed" if it is closed.
It will hang for a while before echoing "close" when that is the case.
Ping is ICMP, if you blocked ICMP you can't ping.
You might still be able to test TCP or UDP ports if you are accepting TCP/UDP connections.
If you are running your test on containers, which lack ping, nc, telnet and other tools, you can use this trick:
(echo >/dev/tcp/$host/$port) &>/dev/null && echo "open" || echo "closed"
This will attempt to connect through tcp/udp through the device (wow, I know) and echo "open" if the port is open or "closed" if it is closed.
It will hang for a while before echoing "close" when that is the case.
edited May 18 at 21:15
Community♦
1
1
answered Jul 23 '18 at 18:20
David Rz AyalaDavid Rz Ayala
1113
1113
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
add a comment |
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
Cool I had to use this in docker pod ;-)
– Amorphous
May 8 at 16:04
add a comment |
You can install a simple web server and use a web page saying "ONLINE".
The you only have to connect to it wherever you want
Of course you need a statin ip or services linke dyndns
add a comment |
You can install a simple web server and use a web page saying "ONLINE".
The you only have to connect to it wherever you want
Of course you need a statin ip or services linke dyndns
add a comment |
You can install a simple web server and use a web page saying "ONLINE".
The you only have to connect to it wherever you want
Of course you need a statin ip or services linke dyndns
You can install a simple web server and use a web page saying "ONLINE".
The you only have to connect to it wherever you want
Of course you need a statin ip or services linke dyndns
answered May 28 '09 at 13:57
jlan
add a comment |
add a comment |
A very simple approach is to telnet to a TCP port that should be open on the server, ie:
telnet theServerHostname 80
Although if the service is down you would get the same result as if the host was down.
There are all sorts of scans that can be done with nmap, learn about them on nmap's site and you should become an expert on how to test if a host is up. These include using protocols other than icmp (ping), such as TCP (as telnet does) and UDP.
Also, if you want something that includes the ability to connect to udp, that is similar to telnet in this sense, consider netcat.
add a comment |
A very simple approach is to telnet to a TCP port that should be open on the server, ie:
telnet theServerHostname 80
Although if the service is down you would get the same result as if the host was down.
There are all sorts of scans that can be done with nmap, learn about them on nmap's site and you should become an expert on how to test if a host is up. These include using protocols other than icmp (ping), such as TCP (as telnet does) and UDP.
Also, if you want something that includes the ability to connect to udp, that is similar to telnet in this sense, consider netcat.
add a comment |
A very simple approach is to telnet to a TCP port that should be open on the server, ie:
telnet theServerHostname 80
Although if the service is down you would get the same result as if the host was down.
There are all sorts of scans that can be done with nmap, learn about them on nmap's site and you should become an expert on how to test if a host is up. These include using protocols other than icmp (ping), such as TCP (as telnet does) and UDP.
Also, if you want something that includes the ability to connect to udp, that is similar to telnet in this sense, consider netcat.
A very simple approach is to telnet to a TCP port that should be open on the server, ie:
telnet theServerHostname 80
Although if the service is down you would get the same result as if the host was down.
There are all sorts of scans that can be done with nmap, learn about them on nmap's site and you should become an expert on how to test if a host is up. These include using protocols other than icmp (ping), such as TCP (as telnet does) and UDP.
Also, if you want something that includes the ability to connect to udp, that is similar to telnet in this sense, consider netcat.
edited May 28 '09 at 14:06
answered May 28 '09 at 13:56
Kyle BrandtKyle Brandt
66.8k62265414
66.8k62265414
add a comment |
add a comment |
Microsoft's own PortQry Command Line Port Scanner Version 2.0
I use it to test SQL Server ports often
open port = LISTENING or NOT LISTENING
firewall = FILTERED
add a comment |
Microsoft's own PortQry Command Line Port Scanner Version 2.0
I use it to test SQL Server ports often
open port = LISTENING or NOT LISTENING
firewall = FILTERED
add a comment |
Microsoft's own PortQry Command Line Port Scanner Version 2.0
I use it to test SQL Server ports often
open port = LISTENING or NOT LISTENING
firewall = FILTERED
Microsoft's own PortQry Command Line Port Scanner Version 2.0
I use it to test SQL Server ports often
open port = LISTENING or NOT LISTENING
firewall = FILTERED
edited Sep 12 '14 at 21:49
Michael Hampton♦
179k27326659
179k27326659
answered May 28 '09 at 15:00
jerryhungjerryhung
1363
1363
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f13780%2fhow-can-i-determine-if-a-machine-is-online-without-using-ping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown