LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2016, 01:59 PM   #1
k.rfid
LQ Newbie
 
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
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
 
Old 06-13-2016, 02:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,480

Rep: Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939
Quote:
Originally Posted by k.rfid View Post
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.
 
1 members found this post helpful.
Old 06-13-2016, 02:06 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Using the ping command
 
Old 06-13-2016, 04:05 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK, where is the hidden camera at?
 
Old 06-13-2016, 04:07 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
OK, where is the hidden camera at?
Smell bait, do you?
 
Old 06-14-2016, 09:18 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,574
Blog Entries: 4

Rep: Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890
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 do not(!) "mean to be coy.")
 
1 members found this post helpful.
Old 06-15-2016, 04:09 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,138

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Cool

Quote:
Originally Posted by k.rfid View Post
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!
 
Old 06-15-2016, 08:20 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,480

Rep: Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939Reputation: 7939
Quote:
Originally Posted by sundialsvcs View Post
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 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My raspbian box have to ping other box first then other host can see my box jtingkir Linux - Networking 10 08-09-2013 08:53 AM
Cant Ping my Linux Box from Windows eroica Linux - Networking 10 11-17-2004 07:26 PM
can't ping linux box from windows - sorry, another one! stretchcomfort Linux - Networking 6 08-18-2003 06:24 PM
My linux box can't ping to my windows boxes! Thermodynamic Linux - Networking 8 08-06-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration