Well...technically if you wanted to, you could probably fake it with an XMLHTTP object, though it might get kind of pissed with you. Say you want to it to talkj to port 23, just direct it to
Now it's not really a raw socket connection, but you did manage to hit the port and transfer some info (HTTP headers, etc)
One (more realistic) option would be to have a page on the server that does the connection. You could use javascript and XMLHTTP to make queries back to the server, have the server-side pages do the socket work and return some data, then have the javascript output the result in some manner onto the page. Kind of AJAX meets sockets.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.