'Port forwarding from public ip to local ip in other way

So... if i want my tcp server can be connected by other network(not just local network), i will need to setup port forwarding in my router setting page. But it's so annoying so i'm wondering is there other way to port forwarding from public IP to my local IP address.. maybe with code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source