1

In P2P(peer-to-peer) networking, it is possible for the server program(software) and the client program(software) to be running on the same computer.

So the two must have the same IP address.

I am confused about this. Is there nothing going wrong if both of them uses the same IP address?

Please clarify.

Kartikey
  • 111
  • 2

1 Answers1

1

Sure. That's fine. Nothing wrong with that. Transport-layer protocols (such as UDP or TCP) use port numbers so that you can run multiple applications on the same machine without any difficulty.

D.W.
  • 167,959
  • 22
  • 232
  • 500