Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:14:31+00:00 2026-05-31T17:14:31+00:00

Problem : I am creating an iOS chat app using the XMPPFramework and an

  • 0

Problem : I am creating an iOS chat app using the XMPPFramework and an Openfire Server. However, I cannot connect to the server. I can however log in with GTalk or Facebook accounts. Furthermore, I can log in to the account on my own server using another Jabber client such as Spark.

Code : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/

Here is where it connects :

- (void)setupStream {
    xmppStream = [[XMPPStream alloc] init];
    [xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];
}

- (BOOL)connect {
    [self setupStream];

    NSString *jabberID = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"];
    NSString *myPassword = [[NSUserDefaults standardUserDefaults] stringForKey:@"userPassword"];

    if (![xmppStream isDisconnected]) {
        return YES;
    }

    if (jabberID == nil || myPassword == nil) { 
        return NO;
    }

    [xmppStream setMyJID:[XMPPJID jidWithString:jabberID]];
    password = myPassword;

    NSError *error = nil;
    if (![xmppStream connect:&error])
    {
        UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error" 
                                                            message:[NSString stringWithFormat:@"Can't connect to server %@", [error localizedDescription]]  
                                                           delegate:nil 
                                                  cancelButtonTitle:@"Ok" 
                                                  otherButtonTitles:nil];
        [alertView show];
        [alertView release];

        return NO;
    }

    return YES;
}

Update 19 March : NSError is never populated so it was difficult to see what the error was. However, I have debugged through the code, and found an error in QueryRecordCallback of XMPPSRVResolver. The error code is -65554. After a google for this, I have discovered this …

kDNSServiceErr_NoSuchRecord = -65554,

However, I am still unsure how to resolve this ‘NoSuchRecord’ issue.
Furthermore, the logging on the OpenFire Server implies that we are not even getting to the OpenFire Server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:14:32+00:00Added an answer on May 31, 2026 at 5:14 pm

    The problem is likely to be your Openfire server not being on a public domain. Assuming your Openfire server is running on a private LAN server, the global DNS records will not be able to point to it.

    If you have access to a publicly accessible domain, try putting the Openfire server on the machine that serves this IP.

    From reading the documentation for XMPPFramework, this shouldn’t cause a problem, but it did with me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the latest facebook iOS SDK (supporting SSO) to connect my iPhone app
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a problem creating the following SQL Statement using LINQ & C# select
I have problem with creating a simple MySQL trigger in C#. I'm using StringBuilder
I am developing an iOS app using iOS 5. I am having trouble using
I'm currently using phonegap to create and ios app. While getting familiar to the
I am creating an iOS app that reads data from a single SQLITE table
I'm new to iOS development, just had a quick question. I'm creating an app
We're creating an iOS photo app. In doing this, we have to create dynamically
I'm creating a web-database driven offline web-app targeted at iOS devices. I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.