VMware Cloud Community
Anees_Mangi
Contributor
Contributor

wmware ESXi 6.x Failed Port Forwarding

Please help me i trying alot but failed to access my VM through public IP, where i am wrong please guide..

This is my ESXi machine on local Ip 192.168.1.150

2020-03-14-16-06-15.png

VM machine with IP configurations mentioned in image

2020-03-14-16-06-58.png

Jenkins Installed on port 8080

2020-03-14-16-07-30.png

Port forwarding / Port Mapping settings on Vodafone Router

2020-03-14-16-08-55.png

This is my Public IP same ping OK

2020-03-14-16-09-47.png

Result is this, Please guide where i am wrong...

2020-03-14-16-10-45.png

Reply
0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

The IP configuration in Ubuntu shows as the “default route“ on a different subnet to the “IPv4 address”.

So you would need a router to access the router.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
HawkieMan
Enthusiast
Enthusiast

As correctly stated by others, you have a problem With Your network setup here.

Your VM has IP address 192.168.1.180

while you have set default route to 192.168.121.2

This is not within the same subnet and will not work.

If the netmask is /24 or 255.255.255.0 then the Gateway must be within the 192.168.1.x network.

I noticed you also had the dns as the same as the Gateway address.

Should the Gateway address be 192.168.1.2 ?

In any case, this is not a vmware problem, but network setup inside the VM.

Reply
0 Kudos