Port server to iOS.