0

For local development, I was hoping to programmatically get the computer name or ip address of the macbook my iphone is connected to. I've been looking at hostess; however, it seems to only provide my iphone's ip address. Is this possible?

Thanks so much for the help! Dave

2
  • "the MacBook my iPhone is connected to" ... how did your app establish a connection to your MacBook? Commented Nov 28, 2018 at 19:24
  • @user3441734 lighting cable (iphone) to usb-c (macbook) Commented Nov 28, 2018 at 21:59

1 Answer 1

1

What I've experienced is that if you're building an Xcode project on an iOS device, and then run the project with the debugger attached, it routes all of the iOS device's networking through your computer. So it will only show your computer's IP address, not the device's. It looks in the debugger as if that's your iPhone's networking info, but it's really your computer's.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.