networking - Fail to connect to Jabber with external IP

06
2014-04
  • marmistrz

    I set up my own encrypted Jabber chat. I use prosody for this. When I use localhost or the internal IP address, I get connected without problems. But whenever I use my dynamic but up-to-date, external IP address, I get a network error in Empathy. I tried disabling Firewall in the router, but fixes nothing.

    What can be the reason?

    Thanks

  • Answers
  • Garrett

    Likely candidates:

    1. You have a firewall on your network which is preventing external access to the port on which Jabber is running. You must open up a hole on that port (usually done via an exclusion or port forwarding) in order to externally access the service.
    2. Your ISP blocks this port. The only practical workaround in this case is to try using a different port for your Jabber server. Alternately, if you have a firewall in place as in #1, you could leverage port-forwarding to map the external port to a different numbered internal port (i.e. 52220 -> 5222). The advantage here is that you would not need to change the port that Jabber listens on and only what you use to connect to it from the outside.

  • Related Question

    ubuntu - Jabber Breaks in Empathy
  • Tim Lytle

    Using empathy in Ubuntu 10.04 (64 bit), everything worked great after initial setup. But after disconnecting and reconnecting, any Jabber connection (GTalk and Facebook Chat) gives a 'network error'.

    Tried disabling accounts and only connecting to GTalk, same error. Tried removing all accounts, adding GTalk, same error. Upgraded to the dev version of Empathy, connected once, then after going 'offline' and reconnecting, same error.

    If it just didn't work, I'd wait for some kind of fix. But it did work, but only once per install. How does that happen?

    Anyone with this problem that solved it?


  • Related Answers
  • nomnex

    This solved the problem for me:

    1. Disable the accounts in Empathy (F4).

    2. Go to seahorse (applications > accessories).

    3. Select the password tab > remove the passwords for the accounts in question.

    4. Enable the accounts back and re-enter the password in Empathy (F4)

    The "network error" in my case was not a connection error (the accounts where working in my other jabber client "Psi") but a glitch in seahorse. Empathy relies on seahorse to store the account passwords.