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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:46:49+00:00 2026-05-24T09:46:49+00:00

I have two servers (home and remote) and the program on the iPhone. The

  • 0

I have two servers (home and remote) and the program on the iPhone. The iPhone needs to keep a port open until the entire process is complete, otherwise the whole system will fail.

So, the iPhone gets a string of data from the “home” server (via post), adds some things to it, and connects to the “remote” server via a port stream. Once the port is opened and the data is sent to “remote”, it gets a response back from remote and forwards it to “home”. Once “home” gets it, it changes some things around and sends it back to the iPhone which needs to forward the information to “remote” via that same, still opened, port.

I can’t close the port stream and open it back up because things on the “remote” server will change and break the entire process.

Here is a quick picture. Thank you, MS Paint.
Server Connection

Thanks in advance,
James

  • 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-24T09:46:49+00:00Added an answer on May 24, 2026 at 9:46 am

    If you control both the local and remote server, you could ensure that HTTP 1.1 is used and that the connection uses the “Keep-Alive” header.

    A technique that could also help is XMMP binding to emulate the semantics of a long-lived bidirectional connection.

    If you don’t have control over the servers, then I fear you are a bit on your own, since Keep-Alive was introduced rightly for supporting persistent or long-lived connections.

    In this case, I think that the only option you have for keeping the connection open is some kind of polling, i.e., while the iPhone is waiting for the response from one server, it sends a request to the other server every n seconds, being n below the server connection timeout.

    This approach will work only if the server does not immediately close the connection after sending the response.

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

Sidebar

Related Questions

Suppose you have two linked servers called Local and Remote respectively. Is there a
I have two servers where I installed SQL Server 2008 Production: RAID 1 on
You have two servers when you perform a SQL Server database mirroring You have
I have two servers - one Django, the other likely to be written in
I have two dedicated servers and no hardware firewall. I'd like to forward all
I have two IIS servers running using NLB. Unfortunatelly I cannot use shared session
I have two grails servers: Server - has read/write access to the database Web
When I have two mysql servers that have different jobs (holding different databases) but
I have a simple scenario, where two servers are connected through a gigabit link.
I have set up transactional replication between two SQL Servers on different ends of

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.