[Tkabber] Re: Bind ejabberd on special ip

Frank Niedermann fbn at thelogic.org
Mon Oct 4 09:39:45 MSD 2004


In article <20041004044040.GA19188 at jupiter.golovan.ru> you wrote:
> On Sun, Oct 03, 2004 at 09:14:46PM +0000, Frank Niedermann wrote:
>> >> is it possible to bind ejabberd on a special ip?
>> > Try to specify option {ip} in {listen} section of the config file.
>> I've done this but without " arount the ip I get a syntax error
>
> You shouldn't put quotes around ip.
> Show your config file {listen} section and the error.

This is the listen section of my config file:

% Listened ports:
{listen,
 [{5222, ejabberd_c2s,     [{access, c2s}, {ip, {"213.133.123.40"}},
                      {shaper, c2s_shaper},
                      starttls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
  {5223, ejabberd_c2s,    [{access, c2s}, {ip, {"213.133.123.40"}},
                          tls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
  {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
  {5280, ejabberd_http,    [http_poll, web_admin]},
 ]}.


And this is the syntax error I get:

Erlang (BEAM) emulator version 5.1 [source]
Eshell V5.1  (abort with ^G)
=ERROR REPORT==== 4-Oct-2004::07:33:50 ===
    E(<0.39.0>:ejabberd_config:58): Can't load config file
    "/etc/ejabberd/ejabberd.cfg": {4, erl_parse, ["syntax error before: ", "123.400"]}
=INFO REPORT==== 4-Oct-2004::07:33:50 ===
    application: ejabberd
    exited: "invalid return value from ejabberd_app:start(normal,[]) ->
    {'EXIT',[\"syntax error before: \",\"123.400\"]}"
    type: temporary

Regards,
  Frank
-- 
  Mail: fbn at thelogic.org
  XMPP: fbn at charente.de


More information about the Tkabber mailing list