Port forwarding software (service) for Windows

I have a server service that uses 8182 port. Somebody want to connect to this, but 8182 port is unavailable for him, only 5118 is working fine.

No problem I thought, I just install port forwarder software (service), I set to: "If somebody is connecting to 5118, I redirect to 8182".

But I didn't find any trustable (and freeware) good software for this. I tried Rouvali Windows Port Forwarding Service, but it only shows an error on log.

I have no control over the router, because this is a virtual, leased server.

So please suggest me some freeware Windows service (application) that can redirect this port in persistent mode.


Hi!

The netsh was not really succesful.

First the netstat don't show the bound port.

But next I found this article. This said that I need to install IPv6 support.

I installed it, and restarted the server. After this the netstat shows the needed port, but on connect (locally or remote) I got:

Socket error: An existing connection was forcibly closed by the remote host. (10054), on API 'recv'

What would be the next step?

1

5 Answers

netsh interface portproxy add v4tov4 5118 127.0.0.1 8182
netsh interface portproxy add v6tov6 5118 ::1 8182

Note that the service will see the user as connecting from "localhost", which may be undesirable for logging purposes.

1

"IP Helper" service must be enabled and running !

You can also try:

netsh routing ip nat add portmapping "LAN NAME" tcp 0.0.0.0 5118 192.168.0.3 8182

Where 192.168.0.3 is the target server ip.

If port 5118 comes from internet this port has to be open in your firewall/router.

1

Neither of these worked for me. However the port of rinetd worked well.

3

found on a forum :

You need to install IPv6 (Run->Settings->Control Panel->Network Connections->Local Area Connection->Properties->Install->Protocol->Microsoft TCP/IP version 6), otherwise this feature won’t work. It’s a known bug in netsh and it doesn’t look like Microsoft is going to fix it.

and here is the Microsoft KB article :

You Might Also Like