简体   繁体   中英

How to access a page on my local server outside my android hotspot

I have a JEE application running on apache server over port 8080 on my laptop.

My laptop is connected to internet via android hotspot, port 8080 is not blocked by firewall on my laptop.

How can I access a page from my server through a device outside my hotspot?

IPConfig on my laptop:

ipv4:  192.168.43.95
default gateway: 192.168.43.1

I tried to use port forwarder app on my phone to configure port forwarding from port 8080 to IP 192.168.43.95 : port 8080

Port forwarder displayed my device(android) as 100.85.254.126.

My public IP on my laptop is 101.222.171.254 (checked by typing 'what is my ip' on google) and this ip is same for android device serving the hotspot (sure the android device is acting as router).

I need to access pages on my server over internet (from device not in my hotspot), I tried accessing pages on my server over 100.85.254.126:8080 and 101.222.171.254:8080, I receive connection timed out in both the cases.

Is there any way to get this to work?

I think tou will need to forward your port 8080 on your router. I'm not sure.

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