I have a Tomcat 7.0 server running on my PC, I access the servlet via Emulator through Url
http://10.0.2.2:8084/MyServer
I am struggling with this for few hours now. I have understood the following steps to achieve this
-
I need to have a Static IP address? So I am using
No-IP Freeto covert dynamic IP (I have a dial-up connection) to Static IP. -
I need to change the firewall rules in Windows 7. I tried changing
Inbound Rulesfor'port 8084', but it did not work.
My Question is how to access the same server on my PC via a real Android device having GPRS connection?
Thanks so much.
Firewall rules on your Windows PC and wired/wireless router will both need to allow incoming connections to port 8084.
On the router, set up incoming connections to 8084 to redirect to your Windows PC’s local IP address (
127.0.0.1). This is called “port forwarding” – look into your router’s manual on how to do it.Once your router forwards incoming port 8084 requests to your Windows machine, you can access it from the outside: