LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to ping a Linux box from a windows box (https://www.linuxquestions.org/questions/linux-networking-3/how-to-ping-a-linux-box-from-a-windows-box-4175582172/)

k.rfid 06-13-2016 12:59 PM

how to ping a Linux box from a windows box
 
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

TB0ne 06-13-2016 01:03 PM

Quote:

Originally Posted by k.rfid (Post 5560280)
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.

Habitual 06-13-2016 01:06 PM

Using the ping command

lazydog 06-13-2016 03:05 PM

OK, where is the hidden camera at?

Habitual 06-13-2016 03:07 PM

Quote:

Originally Posted by lazydog (Post 5560338)
OK, where is the hidden camera at?

Smell bait, do you?

sundialsvcs 06-14-2016 08:18 PM

Awright ... awright ... let's puh-leauze try to address this poor soul's question "quasi-seriously." :jawa:

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(!!) :tisk:) 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 do not(!) "mean to be coy.")

JJJCR 06-15-2016 03:09 AM

Quote:

Originally Posted by k.rfid (Post 5560280)
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)

Good luck!

TB0ne 06-15-2016 07:20 AM

Quote:

Originally Posted by sundialsvcs (Post 5561029)
Awright ... awright ... let's puh-leauze try to address this poor soul's question "quasi-seriously." :jawa:

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(!!) :tisk:) 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 do not(!) "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.


All times are GMT -5. The time now is 07:19 AM.