I have a server program that listens for raw TCP/IP socket connections coming in from from my android app that connects using the sites domain, such as new socket(“https://www.mysite.com”);
So the DNS look up contains the IP address for my servers domain name, and android gets that and connects using that IP.
I want to prevent hackers getting my sites IP address. I know they can easily find out which IP my app is connecting to by simply having the app connect over WiFi and then looking at the packets to see which IP it connects to and then hack my site at that IP address.
Im using RAW TCP/IP sockets, not http, not https, not WebSockets.
- Anybody knows how to hide my servers IP address, yet still be able to connect to from my app?
- Can I use a VPN from android to my server? Will that hide my servers IP address?
- Is there any other way you can think of even without using cloudflare?