iOS Simulator unable to get connection over ethernet - ios

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.. :)

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.

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.

UDP connection between 2 ios device

I am currently using GCDAsyncUdpSocket to build a app that can communicate with UDP protocol.
I am testing whether the connection work with this iPhone app "UDP_Test" >> App link
When I send msg from my iOS simulator, the message does appear received on my iPhone "UDP_Test" app. However, when I download my project to the other iPhone and setup the connection with the iPhone that has "UDP_Test" app, the communication does not work.
Then I tried using "UDP_Test" for the two iPhone to communicate, it does not work as well. Same goes to iPad and iPhone. Is there a restriction for both iOS device to communicate with UDP?
Thanks.
I have found a way. We have to go to Network setting and choose your network. Then go to "HTTP Proxy" and choose "Manual" then enter the port that your device going to listen to, then it works.
Your two devices needed to be on the same subnet of the WiFi network.

how to get ios browser on iphone to view web pages on my local server for testing?

I have an iOS device. I'm developing some html 5 pages that I'd like to view on my iphone while developing. Is this possible. I tried accessing my local server's ip and it wouldn't connect. I'm not sure if there's something else I should try.
I also tried an my Android device evo shift 4g and same thing...it wouldn't connect using the ip.
Any ideas?
Is the local server running correctly configured apache, or some other server software? Can you access the local pages from a browser on the local server itself? Is the firewall letting port 80 connections in?
Are the WiFi devices in the same subnet as the server? What are the IP addresses of the phones? That could happen if you have a wireless router connected to a wired router, and the wireless router is running its own separate DHCP server. Have you tested from computers that are connected to the wireless network?
There shouldn't be anything that prevents an iPhone or an Android phone from connecting to an IP address that it can resolve. I've never had a problem connecting to a (public) IP address from either an iPhone or an Android phone.
I'm running IIS 7 on Windows 7 Professional. Had the same problem. It's a firewall issue. Go to Control Panel\All Control Panel Items\Windows Firewall\Allowed Programs and enable "World Wide Web Services (HTTP)" for "Home/Work (Private)". That worked for me. As my iPhone is in the same network, I now can access my test server by its IP.

iOS Simulator on Mac with Ethernet & 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...

Resources