Possible Duplicate:
Will HTML5 allow web apps to make peer-to-peer HTTP connections?
I want to make a Internet connection from one device to another how to do the coding of it using html5 and javascript
Possible Duplicate:
Will HTML5 allow web apps to make peer-to-peer HTTP connections?
I want to make a Internet connection from one device to another how to do the coding of it using html5 and javascript
You can't - at least not directly.
Not only does JS not include any suitable APIs, but things like NAT devices tend to get in the way of device-to-device connections.
Possible work arounds include having both devices make a connection to a central server, perhaps using WebSockets.