-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function ping #7
Comments
Hello, in the current version there is no such a thing as a ping by means of an icmp packet. The host test (thumbs up/thumbs down) is done by trying to connect to several ports via tcp. If at least one port successfully connects the host will be considered as up. See line 247 in wake-on-lan.php On the computer hosting the Could you provide a screenshot showing the "connection refused" message? regards |
I'm a bit confused. Where do you "see" this? Anyway, the connectivity test is done by trying to connect to the ports mentioned above. The backend does this by calling fsockopen() (See line 258). If the function returns with error "connection refused" this usually means that the requested tcp port is firewalled. As soon as the tcp connection could be established to any of the ports the loop will end and flag "isUp". So if you finally see the message with property "isUp" set to false, then this means that none of the requested tcp ports could be connected. |
Ah, now it is clear. Thank you. The only important information for the frontend is the property "isUp". I have chosen these ports because the vast majority of my computers have either rdp, ssh and/or a web server. i.e. i can imagine that a "database-only" host would have none of the above ports open. |
For example, to check Windows Host joined to Active Directory, add following in line with port 3389 mentioned above: |
i want to use your script but the ping dont work. where is your function for the ping. im beginer in code
i have error connection refused when the function send request. but my firewall is configured for dont block the ping.
i can send ping via my bash command.
Thanks for your help
ABecker
The text was updated successfully, but these errors were encountered: