Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy

Syazzwan Pesalni
Syazzwan Pesalni
1,488 Points

Repeated IPs..

Let say, I am using a similar device; 2 iphones which running same OS, and connected to a same network, and browsing a same website. Will the IP address of both phones will be the same?

Thanks in advance.

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Syazzwan;

Welcome to Treehouse!

No, they will not. Part of the TCP/IP protocol is the expectation that each device connected to a network will have a different address.

Think of the IP address like a postal address. You might have two identical houses, located in the same city, perhaps even on the same street. But without a different address the postal service will not know where to deliver the mail, right?

Similarly when the internet hardware (routers) need to discuss with each other where a particular piece of information is going to or coming from, they need to know a unique address. Loss of communication and errors result from IP Conflicts if more than one device on a network has the same IP address.

This is a pretty high level overview of the subject as there is much more going on both in terms of hardware and software in an attempt to ensure that IP addresses are, and remain, unique, but I hope it helps.

Post back with additional questions.

Happy coding,
Ken

Syazzwan Pesalni
Syazzwan Pesalni
1,488 Points

Thanks for explaining. Cheers :)