Question about loopback testing

IP Address Questions and AnswersCategory: IP QuestionsQuestion about loopback testing
Francis Yu asked 3 years ago

My machine's local host IP address is, and I do loopback test  on Windows 10.
I use two ping commands as follows, but both are failed (responsed by saying "PING: Transmit failed
General failure") 
C:\> ping -S
C:\> ping -S
Can someone help explain that to me?

3 Answers
wimiadmin Staff answered 3 years ago

As far as I know, the loopback test is to make sure tcp/ip is working. So you would ping either or Pinging either of those and getting a response means tcp/ip is working. I've not seen the -S command used in this situation. Not saying the -S can't or shouldn't be used, I'm simply not familiar with the reasoning behind using the -S for this purpose. I'm open to learning something new though. : )

Francis Yu answered 3 years ago

The use of "-S <srcaddr>" means to designate a specific source IP address of this icmp datagram.

wimiadmin Staff answered 3 years ago

Right. I understand the -S portion. My guess though is it's probably used when multiple IP addresses are assigned to the same NIC. Example if your NIC card had both and assigned, then the -S would make sense. is not technically an assigned IP and that may be why you're getting the error. My only suggestion would be to set the IP assignment method for this NIC to static and assign it two different IPs as shown above. Then try pinging .15 when using .16 as the source.

Know the answer? Login or sign up for an account to answer this question.
Sign Up