I'm curious is it possible to hide the ip address in a peer to peer connection. Mainly considering you have 2 computer connected remotly in a browser session. I would like to know if it's possible to hide the ip. Lets say A chats with B in a browser session chat build with Java script. But i want that A not to be able to inspect the page and see B's ip, or donno network tool from chrome and vice versa. The idea is the user to be able to get in contact only if they agree both to.

3 Answers 3


You won't be able to do this with a direct point-to-point connection. You'll need a central server. That way, each connected client only knows the server's IP address.

  • thank you. I knew about that option, was curious if there's a other.
    – Bogdan M.
    Apr 18, 2014 at 14:41

There's another option, but it wouldn't be really P2P. You could use 2 proxy servers between the connection:

Client1 <-> Proxy1 <-> Proxy2 <-> Client 2

The real remote connection in this case should be <-> and not <->

  • 2
    ... how is this different than just one server? If both clients are trusting a third party (their proxy servers), why does it have to be two of them? A single server would be vastly simpler to deal with. Apr 19, 2014 at 3:10

2 options here:

1) Client-Server model 2) Tor network model, where each client only knows the next "hop destination" for the message and not the final destination.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .