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 6842045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:02:58+00:00 2026-05-27T00:02:58+00:00

I have two questions : I have a jabber client developed with Xcode in

  • 0

I have two questions :

  1. I have a jabber client developed with Xcode in Objective-C, and I have an Openfire server installed.

    When I run the server, two clients will connect. First – my jabber client: a spark IM client and the second – my iPhone app. There’s no problem with communication. My only problem lies when making image transfers.

    Here is the code:

    - (void)viewDidLoad 
    {      
        [super viewDidLoad];
    
        self.tView.delegate = self;
        self.tView.dataSource = self;
        [self.tView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
    
        messages = [[NSMutableArray alloc ] init];
    
        JabberClientAppDelegate *del = [self appDelegate];
        del._messageDelegate = self;
        [self.messageField becomeFirstResponder];
    
        XMPPJID *jid = [XMPPJID jidWithString:chatWithUser];
    
        NSLog(@"Attempting TURN connection to %@", jid);
    
        TURNSocket *turnSocket = [[TURNSocket alloc] initWithStream:[self xmppStream] toJID:jid];
    
        [turnSockets addObject:turnSocket];
    
        [turnSocket startWithDelegate:self delegateQueue:dispatch_get_main_queue()];
        [turnSocket release];
    }
    
    - (void)turnSocket:(TURNSocket *)sender didSucceed:(GCDAsyncSocket *)socket 
    {      
      NSLog(@"TURN Connection succeeded!");
      NSLog(@"You now have a socket that you can use to send/receive data to/from the other person.");
    
      [turnSockets removeObject:sender];
    }
    
    - (void)turnSocketDidFail:(TURNSocket *)sender 
    { 
        NSLog(@"TURN Connection failed!");
        [turnSockets removeObject:sender];  
    }
    

    I don’t know if is because both are using the same IP and trying to connect to the server with the same IP or is there something on the Openfire server that is disabled.

    Now the second question…

  2. To resolve the first problem, I have installed the Openfire server on another computer. In the spark client on advanced setup, I’ll pass the IP (the IP is a nat address, 192.168… ) and port and the name of server.

    But in my iPhone application, it doesn’t connect. How can I make the connection? In localhost, it runs perfectly. I’ve tried to change the name of host, etc. but to no avail.

    Can somebody help me with this?

P.S. What do I have to do to in OpenFire Server to allow data transfer?

  • 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-27T00:02:59+00:00Added an answer on May 27, 2026 at 12:02 am

    It looks like you are using XMPPFramework in the client.

    TURNSocket is a misnomer. The class actually implements XEP-0065. You need to setup a SOCKS5 proxy server. I’m not sure if OpenFire supports SOCKS. OpenFire is used for in-band signalling that helps the two clients decide how to transfer the file. But a SOCKS5 server is required to transfer the actual file in an out-of-band stream.

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

Sidebar

Related Questions

I have two questions regarding client-side validation in ASP, relating to the following setup:
I have two questions: 1) How can I make an array which points to
I have two questions. Do realloc() and memcpy() copy the entries in an array
I have two questions: 1) I have a few global variables for my website
I have two questions: (1) I learned somewhere that -O3 is not recommended with
I have two questions: From personal experience, what free blog engine is the best
I have two questions about java.awt.Shape . Suppose I have two Shape s, shape1
I have two questions 1) my interface i have interface called IRegister and within
I have two questions. 1) Should you always use a using statement on a
I actually have two questions regarding the same problem but I think it is

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.