Can't replace localhost with IP address.

Status
Not open for further replies.

Rahul++

SuperUser
Galvanizer
Hello,

I'm developing some projects in Netbeans. I'm using Apache Tomcat 7.0.22 which is configured to port 8084 and MySQL server to port 3306. I wanted to show my project to friend via internet.

I gave him the address of project folder like http://ip-adress:8084/eCommerce instead of http://localhost:8084/eCommerce but it is not working somehow.

I've disabled firewall, forwarded ports in Router configuration. I used the same method few months back and it worked like charm but now it is not working.

Has anyone faced such situation ever? How it can be resolved? I searched for it on Google but couldn't find proper solution. :(
 
To make sure that the website is indeed using that port and that he can reach it, you can ask him to telnet. Install telnet via Add/Remove computer components and go to Start--> CMD

type "telnet ipaddress 8084"

This can at least tell you whether it is a connectivity issue or a Apache configuration issue.
 
I assume you have given your friend the public IP address and not the LAN address. (can get it from What Is My IP Address - Shows Your IP Address).

Log into the router to open ports. Exact instructions would depend on router model but you will need to mention port no (8084) to be forwarded to the LAN address (maybe something like 192.168.x.x) where your app is running.
 
fractal said:
I assume you have given your friend the public IP address and not the LAN address. (can get it from What Is My IP Address - Shows Your IP Address).

Log into the router to open ports. Exact instructions would depend on router model but you will need to mention port no (8084) to be forwarded to the LAN address (maybe something like 192.168.x.x) where your app is running.

I've shared public IP only.. I tried forwarding PORT using Router Configuration page but it isn't working :(
 
Status
Not open for further replies.