WebFaction
Community site: login faq

For a iOS project we're working on, we're thinking of hosting a Push Notification intermediate server (for example pyapns) on our WebFaction account. There are alternatives to specifically pyapns, but the principles are the same; it's a service being run on the server (with Twisted or similar) that keeps a persistent connection to Apples servers. Our webapp will then communicate with that server via a port to localhost.

  • Is there any things we should think about with this approach?
  • Since there is no need to open ports externally, is there any extra action needed to run the service (except cron job or similar to keep it up and running)?
  • What port should we use, not to risk collisions with other users on the server?

All this said, I've done some initial tests, and pyapns with this setup seems to work as intended :)

asked 08 May '13, 16:19

alleus
32
accept rate: 0%

1

For the last question, just create an custom "Application (listening on port)" and you'll get a reserved port you are guaranteed to be able to use without conflicts.

(08 May '13, 16:53) SethKinast

We don't see any issues with what you've proposed - that should work fine.

As Seth stated, the way to reserve a port is to simply create a new "Custom Application (listening on port)", which will reserve a port for you.

permanent link

answered 08 May '13, 19:30

ryans ♦♦
5.0k103660
accept rate: 43%

Ah, I just assumed that you should create a Custom Application for HTTP-based services being accessed from the outside. Thank you!

(09 May '13, 04:52) alleus
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×47
×10
×5
×3

question asked: 08 May '13, 16:19

question was seen: 2,488 times

last updated: 09 May '13, 04:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM