iOS Simulator on Mac with Ethernet & WiFi - wifi

I am working on a Mac that has an Ethernet connection to a LAN and the Internet. I have an iOS application that I am running in the simulator that needs to connect to a WiFi network in another office. I turned on Airport and connected to the WiFi network I need, but I don't know if the simulator is using the Ethernet or Wifi connection to communicate. I looked for settings in the simulator and couldn't find a way to tell it to use the WiFi connection exclusively.
Thanks for your help.

A coworker answered this question for me today. Apparently, the iOS simulator does not do WiFi. It only knows about a network connection. He said the simulator simply reports that there's a connection, but it's not WiFi.
Hope this helps someone.

I guess iOS Simulator uses whatever network connection is available tot the Computer it is running on. If there are multiple Connections it should scan both IP ranges... I don't exactly know how it handles the case both ip ranges are the same... This is (even if possible) no good solution, because you never exactly know if there are multiple devices with the same IP...

Related

Xcode9 wireless debugging doesn't connect on the university network

I've been trying to use wireless debugging on Xcode9 on the network as it'd be pretty useful to have for a project I'm working on, and it connects normally to my home network. However, when I try this on the university network to work on my project it doesn't seem to connect at all. I've tried resetting the Location & Privacy Settings on the iPad, resetting the Network Settings, unpairing the device, and restarting both the Mac and the iPad to no effect.
No network connection
I can confirm that both the iPad and the Mac are connected to the same university network.
Using:
macOS Sierra 10.12.6 (Macbook Pro)
XCode 9.0
iOS 11.0
There is one thing I tried when I had the similar problem as you have:
1) Try connecting to your iPhone or iPad by specifying its IP Address.
Let me know if that works for you.
Once, I was able to connect to my iPhone in the university network by doing that. But then I lost the connection after 20-30 minutes. After that, I was not able to connect with my device by using its IP address there. Maybe it has something to do with the network configuration as the network is public, but not sure.

Configuring IPv6 network

I need to test my application on IPv6 network on iPhone. As far as I have learned, I have several options:
Share IPv6 Internet via iMac as described in this tutorial; though when I tried to follow the steps there on an MacBook Air connected by bluetooth to an iPhone with turned on 3G there was no "Create NAT64 Network" checkbox for step 7 - do I nessesarely need to be connected via cabel or I need a stationary iMac?
Configurate IPv6 wi-fi on a router; though as far as I have learned to do this I need some special router that supports IPv6 and my Internet provider should be able to give me IPv6 connection. Is this correct?
Are there other, maybe easier ways to simulate IPv6 on an iPhone? How do I tell router that supports IPv6 from the one that does not?
I know its a bit late, yet it might help someone. You can create an ipV6 network via step 1 described. The trick is, at the time of clicking on BluetoothPAN option, you should press the option(ALT) key in the keyboard. Then Create NAT64 Network checkbox will be displayed at the bottom. This is the same case for WIFI & Ethernet too

Run app in iOS simulator with VPN connection

I want to run my app in iOS simulator with VPN.
My mac is connected to a VPN network, i want to run my app in simulator, is this possible.
Please help.
If your VPN is "L2TP over IPSec", just need to make sure you've checked "Send all traffic over VPN connection" in System Preferences / Network / YourVPN / Advanced:
The answered marked as correct works but you need to start/restart the simulator once you are successfully connected to the VPN.
I make this comment in order to avoid what happened to me. I spend a day trying to making vodo magic and at the end the solution was just restarting the simulator.
Yes it is possible and i have already worked on iOS simulator with VPN connection. Basically you don't have to install or make any changes for this.
When you connect to VPN on Mac you can browser the sites or system to which you are VPN connected. Since iOS simulator uses your Mac's connection it will also be able to connect to the VPN network.

TCP connection not working properly when using iPhone as hotspot

I'm developing an application for iOS which is connecting through TCP sockets to a server aplication run on Android. In order to find the IP of the 2nd device I use a UDP request and receive the IP of the server.
It's working well all the time when I'm connecting them to Wi-Fi network or when I use the Android device as a hotspot to the iPhone. But if I want to make the iOS device a personal hotspot, I can't reach connection between the two devices and the app is useless in this regime. Is it possible to connect the devices then and is the algorithm the problem? I would be glad to hear if someone has ever had a similar problem and knows the solution.

iOS Simulator unable to get connection over ethernet

I've previously bought a MacPro which come with ethernet port and also wifi adapter. I've my wifi turned off and the ethernet port connected with an intranet network cable.
However in my simulator, it keeps showing the error of having NO connection (my Mac can connect to intranet resources perfectly). Fyi, I also noticed that my Mac connection icon was a empty wifi icon, which it means I don't have connection? I just wan my Mac to default to ethernet connection, and my iOS simulator should be able to connect to intranet as expected.
Any help please?
iOS simulator uses the same network interface what your MAC is supporting at present.
"I also noticed that my Mac connection icon was a empty wifi icon" It means Wifi is turned off… It doesn't mean that you don't have connection.
Let me know if more info needed.. :)

Resources