Hi there, I'm using netbeans 3.5 with its version of tomcat (4.0.1 is it?) I'd like to use my PC as a server, so people can access my web applications. I know I have to use my IP address, but I'm not sure exactly what address needs to be inserted into browser to access my web applications. Please can someone help me with this, I'm sure its possible, and I would love to share my programs with people.
That depends on what your network setup is. If you're behind a firewall, possibly a NATed one, your machine probably isn't accessible from the outside without some configuration. Your sys admin can tell you what the IP is in that case (although he will have security objections about doing this). If you have a direct permanent connection with a static IP (through DSL or broadband), you can look it up in your network settings. If you have changing IP addresses, a servic elike DynDNS can help you.
From the machine with Tomcat running on it, open a browser and go to: http://www.whatismyip.com That will tell you what your external IP is.
If you don't have a static IP number, there is a chance it could change. Some internet providers block incoming traffic on port 80 (mine does) because they really don't want people running webservers from their houses.
This doesn't seem right though, since I could have 2 filesystems each with an Hello.html file, so surely the address needs to include the netbeansprogs directory??
Please can someone explain what address I should use to access the Hello.html file
Thanks very much for your time and help. [ December 30, 2005: Message edited by: colin shuker ]
Joined: Mar 22, 2005
I'm not familiar with the mounted file systems of NetBeans, or its built-in server, but this
is not going to work. localhost is actually the name of your local machine, and is the equivalent of the address 127.0.0.1. Externally, it might be , but you can only have a single server running on port 8081, so the netbeansprogs directory doesn't really figure into it. [ December 30, 2005: Message edited by: Ulf Dittmer ]
Joined: Apr 11, 2005
Thanks I tried the address you said, but it didn't work. I might need to fiddle around with the netbeans settings. I'm not sure Thanks anyway