1

I'm connecting my MacBook successfully over my home wifi network via VNC (using Mac OS X's /System/Library/CoreServices/Screen Sharing.app) to my jailbroken iPhone 5, which is running Veency.

Now, in preparation for needing to control my iPhone remotely from my Mac when there is no wifi or AC power available (so a wireless router is impossible), I'm trying to use VNC over a direct wireless connection between my Mac and iPhone. I've created the network on the Mac and connected it to it from the iPhone. Problem is, I need the iPhone's IP address so that I can connect to it via VNC.

How can I use VNC to control my iPhone from my Mac when there is no wifi or AC power available? If I can't do it over a wireless direct connection, is there some way to do it over a USB cable connected between the MacBook & the iPhone?

  • 1
    Once you've connected to the ad-hoc network from your iPhone, does the phone not show an IP address on the network's details page? – Dan J Feb 13 '14 at 15:44
  • Nope, no IP address after connecting. That's my whole problem. I suppose I could try assigning a static one, like 192.168.100.100 w/subnet mask 255.255.255.0, then assign the MacBook 192.168.100.101 w/same subnet mask and see if they'll connect. I'll try & report back. – Matthew Adams Feb 13 '14 at 22:00
  • Fixed w/out static IPs. It just took a while for the IP address to show up on the iPhone. I must've waited for a good minute or two, then saw the IP address. Used it from the MacBook to connect via VNC & everything worked fine. Thanks! – Matthew Adams Feb 13 '14 at 22:09
  • FYI, noticed it was faster to just set a static IP using the same first two segments (169.254), then just something easy to remember, like 169.254.100.100. Works like a charm. – Matthew Adams Feb 13 '14 at 22:24
2

Summary of solution

  • "Create Network..." on MacBook to create a "computer-to-computer" network (via a right-click on the wifi icon in the main menu).
  • Go to wifi settings on iPhone & join network created.
  • Either wait for IP address to show up on iPhone's network details page or statically assign one in the range 169.254.x.y, as long as it's not the same as the other computer's IP address.
  • Go to Finder (or Path Finder), click Main Menu\Go\Connect to Server... (or just type ⌘K) to connect, then type vnc://169.254.x.y, where x.y are the last two network octets you assigned statically to the iPhone or that the MacBook assigned to the iPhone.

You should then be connected. Remember to be patient when connecting -- I experienced not exactly quick response times when connecting, and that was with no security...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .