I'm thinking of creating a system which would help me transfer the output of my bash terminal to an app in a remote device(like my Android smartphone).
I was thinking of tackling this problem as just a read and write problem on two ends of a Socket with the Server running in my machine and Client in my phone. But the problem I ran into was that my devices can be on different networks. In that case, do I have to implement something like port-forwarding? Is there a better approach to this which will require minimal effort as a user who doesn't know much about networking and how to set up port-forwarding?