I have a LAMP server that write data on local network using UDP in multicast on port 300.
I'm developing an application using ionic framework for ios and android that have to read this data on UDP in multicast.
Is possible to do it? I'm trying socket.io library without success..how i can do it?
You need a Cordova native plugin to achieve that.
There seem to be one, but I never tried it yet.
Related
I am developing a ESP8266 based project that will be able to communicate with MQTT server (publish and subscribe) ,I'll also need to make files receives from MQTT server .
It is possible to do this with ESP8266 and MQTT ?.I had searched on Google and but I didn't get very clear answers. Can anyone suggest be better solution?
I am working on an application that uses socket to transfer data from one device to other without the server interference and it is important that no one can get a copy of the data only the sender and the receiver. The server will be only for certificate authority and ip addresses collection and distribution. The main issue was opening a connection between to devices and it was solved by configuring the router to accept outside connection and port for warding and so on .. yet i am building the application for users that wont bother themselves to configure there owb routers .. I am asking for a solution to the problem or a better way to set the communication between the devices.
I search the internet for more details on the subject and i found other solution is to use P2P. There are few P2P platform like jxta or sip2peer. that can reach the client even if the client is behind a fire wall and this solve the problem. instead of using java for android or swift for ios, i will use xamarin (C#) to do that, since xamarin is native cross platform IDE .. thanks to every body in this greet community.
Can anyone tell me, is it possible to create an iPhone chat app without using a server. I just need only two connections.
I guess it would be possible by the two devices have to be directly connected (i.e. bluetooth, wifi, etc.). They may therefore discover each other (at an application layers i.e periodically broadcasted UDP packets on a give port?), create a tcp connection (or UDP but in this case you should ensure at application level all the sent messages are actually received..) on the top of which the actual chat protocol can be realized
I'm discovering capability of Iphone network programing. I have already working ICMP ECHO REQUEST / REPLAY using SOCK_DGRAM. And I would like to do more stuffs. For example port scan in NMap. Yes, I can use TCP connect(). But I wanna try to send TCP SYN.
My question is, can use raw sockets ? Because Iphone doesn't have root permission. And Unix Os need permission to use raw socket. But I found somewhere, that I can use SOCK_RAW and build own IP Header. Allows this Apple ?
Thanks for any reply.
You can't do that inside the SDK. If you are building a jailbreak app you can do this without any problem, probably you will need some headers, including the UDP header and possibly some BPF if you want to sniff packets (like tcpdump, which you can find a iPhone version on Saurik's repository) that are not present on the SDK. You can just copy them from Mac OS X (/usr/include) and put them on /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/include/ for example.
I would like to be able to develop an iPhone application that can communicate with Modbus devices, but I'm not sure how to proceed. Has anyone had experience with this or are there existing libraries out there for this purpose?
You will need first to know how to make a simple TCP client on your iPhone, and a simple TCP server on your computer that your iPhone client will talk to via WiFi. Make sure PING command works and firewall does not block your server port before any client/server experiments, and make sure that server port for experimenting is greater then 1024 and not already used. Then take a look at MODBUS TCP specification from official site, get familiar with function codes you are interested in, and study C code found here. Then make a simple MODBUS TCP client that can send a request to MODBUS TCP server and interprete an answer. The best way is to start reading single register value, then progress in time and add more functions.
I do exactly all above points, my iOS Modbus lib works fine, application is now up on AppStore, PLCLink read and set any modBus data into my Wago home automation.
Installation guide : http://pautex.fr/plclink