title: PeerJS share one computer local stream to another computer in same network
body: <p>I am a newbie to WebRTC and PeerJS. My aim is to share Computer A local media stream to Computer B. I have successfully do this with the use of the cloud PeerJS server. However, I want to setup my server in local network.</p>
  
  <p>Computer A is responsible for capturing the local media stream and I have the following code written.</p>
  
  <pre><code>var peer = new Peer('mycustomid1', {host: 'localhost', port: 9000});
  </code></pre>
  
  <p>Computer B is responsible for displaying the stream received from Computer A.</p>
  
  <pre><code>var peer = new Peer('mycustomid2', {host: 'Computer A's ipv4 address', port: 9000});
  </code></pre>
  
  <p>And I start my server with the code:</p>
  
  <pre><code>node peerjs --port 9000
  </code></pre>
  
  <p>Is my code correct? P.S. I can access Computer A localhost in a web browser on Computer B.</p>
  
  <p>Thanks in advance.</p>