Port forwarding software (service) for Windows

6

6

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?

durumdara

Posted 2011-06-27T14:13:32.010

Reputation: 329

I solved this to use the outer IP, and not local... – durumdara – 2011-06-29T08:03:43.380

Answers

7

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.

user1686

Posted 2011-06-27T14:13:32.010

Reputation: 283 655

Hi! I type your example, but nothing happened. 1.) netstat don't show anything 2.) I cannot connect. May I must start a service, or do some restart, etc? Thanks! – durumdara – 2011-06-28T06:56:34.617

3

"IP Helper" service must be enabled and running !

GrzegorzG

Posted 2011-06-27T14:13:32.010

Reputation: 31

2

Neither of these worked for me. However the port of rinetd worked well. http://codewut.de/Port-Redirection-with-Windows

user2073793

Posted 2011-06-27T14:13:32.010

Reputation: 21

netsh is too buggy to be useful. rinetd is really good & portable solution. – Vitalii – 2016-06-14T08:25:21.013

2Welcome to Superuser, could you post all relevant information to your answer from that link into your answer to avoid link rot – 50-3 – 2013-10-01T23:12:03.463

As @50-3 said, please include all relevant information. It's okay to link things, but include as much from the link in your answer as possible. One to two line answers are generally frowned upon. :C – DanteTheEgregore – 2013-10-01T23:51:21.250

1

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.

derFunk

Posted 2011-06-27T14:13:32.010

Reputation: 151

1

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 :

http://support.microsoft.com/kb/555744

Pascal

Posted 2011-06-27T14:13:32.010

Reputation: 11