Question: * imagine a server application that listens on localhost only,
* that has no settings to listen on other interfaces
* one wants to force make it listen on other interfaces such as eth0

[bindp](https://github.com/yongboy/bindp) (libindp.so) can do that. However, it is not available from Debian repositories, which makes it inconvenient. Hence I am asking, are there any alternatives to bindp to archive the same goal?

Answer: 
[socat](http://www.dest-unreach.org/socat/) tool ([Debian package](https://packages.debian.org/jessie/socat)) can help:

```
socat -d -d TCP4-LISTEN:80,bind=192.168.1.1,fork TCP4:localhost:80

```
With IPv6 the [iptables solution won't work](https://serverfault.com/questions/975558/nftables-ip6-route-to-localhost-ipv6-nat-to-loopback).
You can use @Artem's solution instead, like

```
sudo socat TCP6-LISTEN:80,bind=[2001::beef],fork TCP6:[2001::beef]:8080

```