Not sure if this is possible, since the PJIRC app runs java on the client machine. However, would be useful to run an IRC daemon on the webserver fronting Drupal with the ability for the module to connect on localhost.

Comments

ruharen’s picture

Component: Code » Miscellaneous

PJIRC CAN now connect to "localhost", but, as you said, PJIRC runs on the client so "localhost" will resolve to the client machine. It's useless to configure PJIRC to connect to localhost, unless the client had an IRC server running on its own machine.

Why would you need to connect to localhost? What's the point? I can't think of an answer.

If you configure an IRC daemon in the webserver (say www.example.com), all you have to do is configure PJIRC to conect to the same server (example.com). :)

polskikrol’s picture

For security reasons, I only have IRC listening on localhost on the web server. Would like to provide an interface via HTTP (Java, AJAX, whatever) where its loaded serverside and not clientside.

ruharen’s picture

The whole point of a server is to let remote clients to connect to its services. Isn't it?

Put IRCD listening on localhost is like putting HTTP Apache daemon listening only in localhost. How could anyone access webpages remotely then? OK, that surely would be the most secure webserver in the world, nobody could access it in any way. :P But that is no security, it is just not serving anything. ;)

Sorry if I sounded rude. I just wrote what I think, and I think that has no sense.

An IRC server is not less secure than any other service if you choose a well designed and reliable one.

In the other hand, you could try CGI:IRC that is an HTML/CGI gateway to IRC that can accomplish what you want, I think. But you will suffer server overloading due to continuous HTTP requests if you get to a hundred or more users (more or less depending on the machine characteristics).

ruharen’s picture

Status: Active » Closed (works as designed)

updating issue

polskikrol’s picture

What I am trying to do is replace something like phpfreechat (also a Drupal module) which does not work well with something like IRC that is stable. I would also prefer IRC over the Drupal tribune module. Thats why it would be useful to have an HTTP frontend (such as via drupal) to an IRC server running as localhost. I want clients to access web server running drupal, drupal then presents IRC to the user in the browser.

There is no reason to expose IRC to a routable interface if its only the webserver on the same box making connections with it to allow users to chat.