VMware Communities
federicok
Contributor
Contributor

Port forwarding returns local IP of virtual machine

Hi.

I configure several port forwarding on a nat.conf to several virtual machines. All works fine, but in the last virtual machine added, port forwarding to Remote Desktop works fine but to a application server it doesnt work. It returns the local IP of the virtual machine.

Example of nat.conf

3390 = 192.168.255.10:3389 --> It works fine

90 = 192.168.255.10:80 --> Not work

If in a browser I type the host IP and port 90 (200.XXX.XXX.XXX:90), it automatically change to the virtual machine local IP and port 80 (192.168.255.10:80)

What can be the cause of this behavior?

Thanks,

0 Kudos
4 Replies
yanw
VMware Employee
VMware Employee

80 port is the default http application port, and what's your app that bind to 80 port ? If it is not the http server, you may change another port and have a try

0 Kudos
federicok
Contributor
Contributor

It is a http application, the port 80 is correct.

0 Kudos
continuum
Immortal
Immortal

I am not sure wether your test makes sense at all.
Do you get the same result when you try from outside the local network ?


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
federicok
Contributor
Contributor

Hello, I could solve the problem. It was not a problem of the NAT configuration but a misconfiguration of the application server, which had to be configured to not rewrite HTTP messages.

0 Kudos