So I have been developing and android application for fun in my spare time. This application opens a connection to my home server which is running a java program, does some calculations and sends a response. The issue is I do not want to use port 80. If the cell phone is on WiFi I can connect using any port that I would like, say 8080. This works from any WiFi connection even outside of my home network. However switch to 4G and the connection fails.
SERVER:8080
- Phone on WiFi(ANY) - Works
- Phone on 4G - Fails
SERVER:80
- Phone on WiFi(ANY) - Works
- Phone on 4G - Works
I switched my server over to listen on port 80 and my app to connect using the same and now the connection works on both 4G and WiFi.
Is there something I am missing to make it work on an uncommon port?
Or is this a limitation of 4G connections.
Thanks