Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Hello,
For some programming task I need to Ping a Linux machine from a windows machine
Please help me how can i do that when,
1)Both the system are on different network
2)Both the system are on same network.
Hello,
For some programming task I need to Ping a Linux machine from a windows machine
Please help me how can i do that when,
1)Both the system are on different network
2)Both the system are on same network.
Linux :- Ubantu 14.4
Windows :- WIN 7
Thanks
First, read the "Question Guidelines" link in my posting signature...we are happy to HELP, but you have to show some actual effort of your own. Also, posting a verbatim homework question with no effort will get you nothing in the way of help either.
And the operating system has ABSOLUTELY NOTHING to do with a ping...you say "programming task"...but don't tell us what language, where this is going to run, etc. A ping is an ICMP request...that's all. Doesn't matter what's on the other end. Show us what you've done/tried and tell us where you're stuck.
Awright ... awright ... let's puh-leauze try to address this poor soul's question "quasi-seriously."
The ping command, fairly-obviously, is supposed to be "operating-system agnostic." Each operating system is expected to provide its own particular implementation of that command, such that, well, "it works!"
Likewise, each operating system is expected to respond to an incoming 'ping' (if it chooses to do so ...) in the appropriate way.
Therefore, "the crux of the (ahem ... h-o-m-e-w-o-r-k(!!) ) question" is this: "'different network,' or 'same network?'"
"Yeah, it is a trick(!) question, and intended(!) so to be!"
Therefore ... (in the noble tradition of "homework") ... I leave you with this thought-question: "(Exactly) what is 'the same', versus 'different'?"
T-h-a-t is what the author of the original question intended for you to focus-on ... "and it is a very-crucial question, indeed!" Therefore, I shall purposely stop short of herewith supplying the answer. (And, in so doing, I donot(!) "mean to be coy.")
Hello,
For some programming task I need to Ping a Linux machine from a windows machine
Please help me how can i do that when,
1)Both the system are on different network
2)Both the system are on same network.
Linux :- Ubantu 14.4
Windows :- WIN 7
Thanks
Don't use ping, but use the Packet Internet Gopher. see how it goes.
You can always do in Windows like: ping 1.2.3.4 or continuous ping, ping 1.2.3.4 -t
Or in Linux ping 1.2.3.4 -continuous ping; ping -c 3 1.2.3.4 (ping 3 times)
Awright ... awright ... let's puh-leauze try to address this poor soul's question "quasi-seriously."
The ping command, fairly-obviously, is supposed to be "operating-system agnostic." Each operating system is expected to provide its own particular implementation of that command, such that, well, "it works!"
Likewise, each operating system is expected to respond to an incoming 'ping' (if it chooses to do so ...) in the appropriate way.
Therefore, "the crux of the (ahem ... h-o-m-e-w-o-r-k(!!) ) question" is this: "'different network,' or 'same network?'"
"Yeah, it is a trick(!) question, and intended(!) so to be!"
Therefore ... (in the noble tradition of "homework") ... I leave you with this thought-question: "(Exactly) what is 'the same', versus 'different'?"
T-h-a-t is what the author of the original question intended for you to focus-on ... "and it is a very-crucial question, indeed!" Therefore, I shall purposely stop short of herewith supplying the answer. (And, in so doing, I donot(!) "mean to be coy.")
Yes...but this is 'for some programming task'...which the OP doesn't expound on at all. Not platform, language, or post any of their code/ideas/efforts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.