phonegap desktop app connect to my laptop's server - ios

Hi I am using the phonegap desktop app to make hybrid iphone apps. I had my app download on my iphone device but it can't connect to my localhost on my laptop becausue they are two different machines. I want to know how to connect to my laptop's local server from my actual iphone device. Don't give me answers if you don't actually know if it works.

Related

IOS app is not working on different different internet connections

I have created react-native app for IOS. I have installed it on different different iPhones. It works fine. If I change my WiFi (named ABC) to another network (named DEF) on my mac and then upload it again on my mobile then it will crash. My Mac and my mobile WiFi network is the same. I have also tested it on mobile data and it's not working. But if I connect to WiFi (named ABC) and same on mobile then it works properly. It works only with one network. Why its not working with another WiFi netoworks and also with mobile data?

How do I create a host iPhone with a static IP address for an iOS app?

I am trying to create an iOS app that uses a master iPhone as the host server for other iPhones. How do I do this using a programmatically set static IP address for the host iPhone. Essentially, I am trying to relay data over the internet from multiple iPhones to a singular iPhone without a standalone server. Looking for a solution for either Xamarin or Tizen mobile SDK, whichever works. Jailbreaking is not an option.
Note: I am a complete beginner at iOS development.
Thanks in advance!

How to Push Videos from a Mac app to Iphone?

I have a problem I need to solve. I am planning on building a desktop app(Mac and Windows both).
The Problem is that I need to transfer the video from the Desktop App to iPhone(while iPhone is connected through USB). Any Idea how that can be done?

iPhone connection to localhost rails sarver

I am creating Rails server for iPhone app.
I want to debug on iPhone device not on iPhone simulator.
So, I connect iPhone to mac book air by USB, and connect to Rails server.
But, iPhone could not connect to Rails server.
Environment
Rails 4.2.3
Server localhost:3000
Xcode 6.4
iPhone iOS 8.4.1
en0 inet 192.168.11.7
As long As I searched, when iPhone device connect to localhost server, the url is http://192.168.11.7:3000/~.
But, mac console show nothing and xcode show "The request timed out." after a while.
If anyone know how to fix the problem, please tell me.
Use the wonderful http://xip.io/
You don't need to install anything - just go to
http://192.168.11.7.xip.io:3000
on your phone.
If you want to use a particular domain name, eg if your app behaves differently depending on domain names or subdomains, you can do eg
http://mydomain.foo.192.168.11.7.xip.io:3000
EDIT: my answer is actually about connecting to your server over the internet rather than a usb cable. I'd recommend that you use the internet rather than the USB option if possible as it's simpler. xip.io will not work if you can't access the internet.
You probably tried that but funny enough, in my case turning my iPhone off and on again actually fixed the issue.
I had the same problem, my app was working fine and all of a sudden it stopped working although nothing had changed. I could access the internet, the browser was accessing the rails app url just fine but my iOS app did not seem to be able to connect to it.
I needed to run my iOS app from Xcode with my local rails server to my device and xip.io was the solution.
Get the ip address of your computer from the wireless network you are connected to and put that into networking.swift like so.
http://11.1.11.100.xip.io:3000
Make sure the rails server is running and your device is connected to the same network as your computer and build the app.

Deploy app to phone over network

I'm developing an iOS app on a virtual machine, so I am not able to use a USB cable to install my app on an iOS device. Is it possible to deploy the app to my device over the network?
Thanks
You can use something like TestFlight

Resources