Hello everyone. First off, let me say that I'm very new to ejabberd and IRC, so the problems I'm having might be the cause of something very simple that I'm overlooking.
I installed ejabberd and Gaim on my Windows machine, in an attempt to an IRC channel. Both were installed from the Windows .exe files, not compiled from source. My server is a localhost, and I have successfully registered and logged in with Testing@localhost/Gaim.
At this point, I attempt to connect to IRC by going to "Join Chat" and entering the following room information:
Room: mirc%mirc.stealth.net A random room I found on a list of IRC channels
Server: irc.localhost
Handle: Testing88339
Password: (blank)
When I click "Join" I see "open new connection" in the erlang emulator running ejabberd. However, nothing else happens.
Any idea what the problem could be? Do I need to configure the transport before running it? Could the problem be related to the firewall I'm behind? Thanks in advance for all of your help.
Greg
Server not accessible from Internet
You will need to allow the IRC port, I think it is 6666.
No.
Yes. I doubt it will work if the Jabber server is called 'localhost'. That server is not accessible from Internet.
If you just want to join an IRC channel, why don't you simply use the IRC plugin included in Gaim ?
badlop, Thanks for the
badlop,
Thanks for the reply. The reason I can't just use the IRC plugin with Gaim is because its part of a development program for work. We have an existing project and need to add the capability to communicate from Jabber to mIRC (among other things).
I understand what you're saying about 'localhost' being inaccessible from the internet, but I'm not exactly sure what to do. Is it as simple as changing the entry in the config file from 'localhost' to the computer's IP address? I attempted that and get the same result, so I'm thinking it's most likely related to the corporate firewall I'm behind. I was told I should have access to those ports, but I downloaded mIRC and can't connect to any of the servers, so I'll have to talk to IT again.
On a separate note, I'm unable to log-in to the web-admin page. I have the following lines in the config file:
{acl, admin, {user, "eJabberdAdmin"}}.
and further on down:
{5280, ejabberd_http, [http_poll, web_admin]}
The account is registerd on the server. When I login with "eJabberdAdmin" and the password, it just refreshes the password box. I also tried
{acl, admin, {user, "eJabberdAdmin", "localhost"}}.
and used "eJabberdAdmin@localhost" as the login. When I did that, the page would load "Not Allowed" and I'd have to change the port to get another shot at logging in. Am I doing something wrong?
Thanks again for your help.
check ports
If that IP address is reachable on Internet (or at least by the IRC server if it's on the local network), yes.
Yes, you should check again the ports. If you can't connect with a standard IRC client, you will not able with ejabberd/mod_irc.
No, you must use the full JID. And JIDs are case insensitive.
It means that the account exists, the password is correct, but the account has not privileges (is not admin). When you modify ejabberd.cfg, you must restart the server for the changes to take effect.
Thanks again badlop. I
Thanks again badlop. I brought my laptop home last night and tried it on my home network, and I was able to connect to an IRC channel. That pretty much confirms its the firewall here at work. I'm still working on the web admin page but I'm sure it will all come together.
Greg
Addressing to IRC
I have another question pertaining to the IRC Chat Transport. I've successfully been able to send messages through Gaim, but now I'm trying to create an XMPP package using Python and send it to an IRC channel. If I sent a simple groupchat package addressed to channel%server@myIRCserver, would that get delivered to mIRC? Do I still leave off the "#" before the channel name? Thanks again.
Greg
If I sent a simple groupchat
No: if you are not in the chatroom, how can you send messages to the chatroom? First join the chatroom, then send messages.
Get a Jabber client with a 'View raw XML' window (Psi, Gajim, Tkabber, Exodus) and study the Jabber packets flow between a client and the server.
Also checkNeutron , maybe you can use it for your purposes and write a plugin to fulfill your requirements.