[b2g] How do you debug/test incoming TCPSocket connections on the simulator?

2015-05-15 Thread Soledad Penadés
hi! So far I've been testing the fxos-web-server[1] running on a phone, so I know the IP address of the device and know how to access it from other devices. fxos-web-server uses mozTCPSocket to well, be an HTTP server. So it opens a socket and listens for connections to that port. When I

Re: [b2g] How do you debug/test incoming TCPSocket connections on the simulator?

2015-05-15 Thread Andrew Sutherland
On Fri, May 15, 2015, at 10:00 AM, Soledad Penadés wrote: But connecting a phone to my laptop is not really practical sometime, so I'd like to develop code using the simulator. However, I do not know how to access the simulator. It doesn't have an IP address, and `lsof -i -n -P

Re: [b2g] How do you debug/test incoming TCPSocket connections on the simulator?

2015-05-15 Thread Naoki Hirata
I think Andrew is right. you may want to configure fxos-web-server to use a different port than 80. The ip address should be the same as your computer if you are talking about the webide / simulator; I think you should be able to use the loopback address and the new port number to connect. On