Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Networking
i want to know an answer of my simplest question
 
i have connected two computers by using switch
 
now we both are chatting to each other
 
mean to say i have ip 127.0.0.1
and other pc have 127.0.0.2
 
now i send msg from my pc to 127.0.0.2
 
that is happening good
 
but my main question is this
 
when i try to send message to my own Ip mean to say 127.0.0.1
 
what will the trafic sequance?
 
my message will travell to the switch in case my own ip is send msg to my own ip????
Posted 4-May-12 5:28am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You should not use 127.0.0.1 as it is a loop back address which will not go on your network.
 
You should be using something like 192.168.x.x addresses.
  Permalink  
Comments
prince_rumeel at 4-May-12 10:44am
   
yes sorry to say i m using 192.168.1.1 for my own PC
and 192.168.1.2 for other pc
 
what will happen if i send message to my own self.mean to my own ip 192.168.1.1
Mehdi Gholam at 4-May-12 10:59am
   
Your request will go down to your network card which will check that a connection exists and will go back up to you, same as pinging 127.0.0.1
SAKryukov at 4-May-12 15:59pm
   
This is the answer, a 5.
--SA
Mehdi Gholam at 4-May-12 16:12pm
   
Thanks Sergey!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,192
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100