Hi, First of all this is my first post on this forum
Anyways I have created a java tcp socket server that listens on a certain port, I am able to connect to its ip : port via my client hosted on a website, lately this guy has been making it harder for me to test my client more and more because he was able to decompile my client and find out what port my server is running on and than he made his own modified client that can spam my tcp server, I am trying to figure out a way that my tcp server will only listen to the client on my website, NO OTHER CLIENT only the one on my site, And it has come to my understanding that in the /etc/hosts.allow file can do this, but i tried many methods using it starting with ALL: because my java server isnt run as a daemon and i dont know what to specify it as, also if anyone has a better approach please let me know.