Click here to Skip to main content
12,074,449 members (58,945 online)
Rate this:
 
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 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 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 4-May-12 15:59pm
   
This is the answer, a 5.
--SA
Mehdi Gholam 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2016
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