Is there any way to forward incoming traffic to specific TLD/App by the requested port only on local network level ?To be more specific, I'll try give an example.For Example:My machine has 192.168.0.100 IPAnd I can access apps like-so:http://app-1.devhttp://app-2.devetc...My phone has 192.168.0.101 IPAnd I want to access app-1.dev on the 192.168.0.100So is there any way to redirect traffic like this ?:Request (from: phone/192.168.0.101) 192.168.0.100:3001 -> http://app-1.devRequest (from: phone/192.168.0.101) 192.168.0.100:3002 -> http://app-2.dev
Forward requests by IP/Port -> local domain
networking;osx
Take a look at socat. It's a tool that establishes two bidirectional byte streams and transfers data between them. Syntax: socat TCP4-LISTEN:3001,fork TCP4:www.targetwebsite.com:8080Where connections on port 3001 are directed to targetwebsite.com on port 8080