Click here to Skip to main content
11,645,889 members (73,620 online)
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 4: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 628
1 jyo.net 514
2 Sergey Alexandrovich Kryukov 478
3 Afzaal Ahmad Zeeshan 378
4 DamithSL 260
0 OriginalGriff 1,143
1 jyo.net 994
2 Sergey Alexandrovich Kryukov 808
3 Afzaal Ahmad Zeeshan 702
4 DamithSL 691


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2015
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