You can try netcat
or socat
(it's more powerful than netcat)
An example for socat to forward port 80 using tcp4:
socat tcp4-listen:80,fork tcp4:{another server}:{another port}
and refer to http://en.wikipedia.org/wiki/Netcat#Port_Forwarding_or_Port_Mapping for netcat
Both are not java-related.