简体   繁体   中英

netsh portforwarding not working while accessing url from mobile

Problem statement : I have an Oracle VM running on my windows machine. And the VM machine has an application running in jboss. I want to access this application (running on VM) on my mobile.

What I had tried : I tried port forwarding using below commands and it is working perfectly when I access this from Desktop browser(http://{hostmachineip or localhost}:9098 is connecting to jboss on VM). Now if I access this from my Mobile browser(connected to Desktop wifi hotspot and url-- http://hostmachineip:9098 ), it is not working.

netsh interface portproxy add v4tov4 listenport=9098 connectaddress=<IP of VM>

netsh interface portproxy add v4tov4 listenport=9098 listenaddress=<IP of Host Machine> connectaddress=<IP of VM> connectport=9098

Oracle VM network settings:

Attached to : Host-only Adapter

Promiscuous Mode: Deny

I'm not supposed to change Adapter to Bridged Adapter as the IP for VM will change and it has a major impact in my existing project.

It is an issue with windows firewall. opened 9098 port and it started working. Link describing steps to open port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM