Unicast in iOS devices - ios

We have a Python and also a NodeJS codes that send mDNS responses in a network. These mDNS responses are sent to specific IP addresses (NOT to the MDNS IP address - 224.0.0.251).
For eg. if the IP address of my phone is 192.168.10.125, the server will send a mDNS response to this IP address on port 5353. The response contains the information about a specific device such as a T.V.
If my phone is Android, then the packet is recognized and I can see the TV when I open YouTube app and click on Chromecast icon.
But the problem is with iOS devices (iPhone and iPad), since I can't see the TV when try to Chromecast from YouTube.
On the other hand, if the server sends the packet to MDNS IP address (which is 224.0.0.251), then everything is working fine and I can see the TV while I try to Chromecast in YouTube in both Android and iPhone.
So, clearly, Multicast is working in iOS while Unicast is not.
Can someone please explain what is the issue here with Unicast in iOS devices and how to handle the same?
Looking forward for some help here.
Thanking you in advance.
Unicast seems to be an issue in iOS devices. So need help in understanding how its processed in iOS devices.

It is possible to obtain diagnostic information on the iPhone, but it requires a Apple Developer Account in order to complete the steps.
Visit bug-reporting
Search for "mDNSResponder" for iOS
Follow the instructions (logging in to the developer portal) to install the logging profile.
I have found this approach is helpful to answer why iOS is behaving in a particular way.
Often the logs, from above, and be cross-correlated to Open Source code. In our case Apple has Open Sourced
mDNSResponder.

Related

How can I find devices using port X in the local network?

There may be one or the other professional in the topic of TCP connections in iOS.
The user of my app can configure and connect a network device in the app. To connect the device, I want to show the user a list of available devices. However, I would only like to display devices with a specific port there.
I really hope that someone can help me.
Thanks!

Ping and HTTP Get don't work with Twilio programmable wireless SIM

I'm using a Programmable Wireless SIM in Canada. I have a Pi and cellular modem that I know work with another carrier's SIM. When I connect with the other SIM I can run ping and wget (HTTP get on github repo) successfully.
When I use the Twilio SIM (APN is set correctly) the device connects to the network and i get an IP address however my ping and wget do not work. In twilio's portal the SIM shows as being in an active data call.
WHen I run wget with a github url the device resolves github to an IP address but then hangs when trying to do a HTTP request. I'm stuck as to what to try as the DNS works and I didn't think any of the higher level protocols had anything to do with the SIM.
One note is I have enabled international roaming but not national (US) roaming on the SIM card's data plan. And Yes there is money in the account / plan :)
Thanks!
My colleague had changed the SIM to a plan that didn't include Data. facepalm

p2p ios devices connect. How find and connect devices

I must develop simple p2p connect app.
I have:
1) database server and simple code server (php, nodejs or similar);
2) two ios devices.
How can I connected p2p between devices (for stream voice, text and photos)? Connect by IP and random port impossible, because devices may has same IP.
Devices can located on local network or different countries. Devices can has wi-fi or 3g/4g internet. Devices can stationed behind a router, NAT.
I know about openpeer and others SIP services. But it's very big and excessive solution. WebRTC not work in ios and webView. Multipeer connectivity framework is local devices only.
My question: how I can detect, uniquely identify devices and connect his?
I see this as:
1) On start app and has internet (wi-fi or 3g/4g) - application send message to server.
2) Server get from app: IP, UUID or other (I dont know what information is necessary and sufficient for p2p connect).
3) Server register app and device in DB and return now on-line devices list.
4) App get from server list of other devices.
5) User select other devices and click "connect".
6) Server send to two devices the necessary for connection information (IP's, UUID's and other).
7) Devices start connect p2p, receiving and transmitting data without using a server.
I see this arhitecture (openpeer) image:.
It is good. I must know HOW "finder" server detect devices and what data is necessary and sufficient for connect?
For me unacceptable using third-party servers for connect.
Please help me find the solution.

Paring iOS app to Samsung TV as remote controller

I have been using Upnpx library to discover the TV using Upnp protocol.
What I have to do now is to pare my iOS app with the TV as a remote controller.
The first objectives are to take control of the sound volume, move the mouse cursor, browse through web-browsers, etc.
I have tried to google for urn:samsung.com:device:RemoteControlReceiver1 specification but I had a hard time to find useful informations.
Has someone already done this before and could give me directions or the technical specification to control the TV from a remote app ?
Regards,
You could try to use Charles. That way you will be able to sniff your network. Then try to duplicate the functionality in your app.
Just for the people who will face the same issues.
I paired my iOS app to the samsung TV through TCP socket (I used GCDAsyncSocket to handle this) and using the great informations I found here :
http://sc0ty.pl/2012/02/samsung-tv-network-remote-control-protocol/

Communication through Messaging in iOS

I'm Developing an application. It is the Communication Between iPhone Application and a Hardware Device. in that Hardware Device We are Having SIM Card and also that Hardware Device had Some Settings. Now my task is i have to Modify that Settings By using our Mobile Application through Messaging.
I am able to send that settings in Some Message format to that Hardware Device.after settings have been changed the Hardware Device sends a response message. Now my Problem is I am Unable to Read that Message From My Application.
I Google it in Some Sources they Said:
1.There is No possibility of Reading SMS By using our Application.
2.It is Possible Only if the Phone is Jail Breaked.
is there any alternative solution for this i.e Communication Between iPhone Application and a Hardware Device through only messaging.
Why the hell are you using SMS for this? why not run a server socket on the device that listens for connection, implement some way of connecting remotely (intermediate server, static ip, UPNP etc) and connect and send data via TCP.
As you have stated in you question iOS doesn't allow you access to SMS, you will not be able to achieve this, unless the iPhone is jailbroken, there might be some level of access then but I have no experience with jailbreaking.

Resources