I'm working on a web application that will receive gps data and split received string to detailed information and then store it in some database tables.
Every piece of application is ready, now I need to setup my new server to accept data from gps device.
In my gps device, we have to set an IP and a port that will point to my host. -( my devices are using TCP )-
Server OS is linux CentOS 6.5 and there's a directadmin installed on it.
After a couple of days research, I figured it out that I have to open a port -(
31334 in my cases, because the previuos app was working using this)-.
I can't find out how should I forward inbound data from this port to the file that will handle packets.
Let's say :
I wrote a php file named : gettcp.php
The device will send data using 220.127.116.11 : 31334 (my host ip and port)
How server should find out incoming packets from 31334 have to go to gettcp.php ...???
What's the scenario ...?
AND what should I configure in my host? Should I use directadmin or my linux shell?