Skip to main content

Can't access site on GlassFish outside localhost

5 replies [Last post]
Anonymous

Hi,
does anyone know why people outside localhost can't access my site?
I removed the ufw and rebooted, still I can access my site only by
localhost:8080, not by my external IP:8080, does anyone know what's the
matter?

I have GlassFish 2 latest realease and Linux Ubuntu 8.04 on x86.
--
View this message in context: http://www.nabble.com/Can%27t-access-site-on-GlassFish-outside-localhost...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
xlinuks

It doesn't yield any errors, the browser just can't find my site (the IP of
my computer), but the IP is correct, I copied it from:
http://www.ip-adress.com/
and my network settings show the same IP..
--
View this message in context: http://www.nabble.com/Can%27t-access-site-on-GlassFish-outside-localhost...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Kristian Rink

xlinuks schrieb:
[...]
> does anyone know why people outside localhost can't access my site?
> I removed the ufw and rebooted, still I can access my site only by
> localhost:8080, not by my external IP:8080, does anyone know what's the
> matter?

What does "outside localhost" respectively "external IP" mean in your
context? Are we talking about some kind of LAN, or do you want other people
somewhere on "the internet" to be able to access your site? If the latter,
how are you connected to the internet? Some hardware router / DSL modem in
between you and the rest of the world eventually? Last of all, what does
"can't access my site" exactly mean? Do they get an error message? If so,
which one? :)

Cheers & all the best,
Kristian

--
Kristian Rink
cell : +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

xlinuks

I'm developing a site and I access it through localhost:8080 for testing
purposes (works fine).
Now I'd like some guys (from the internet) to take a look at it so I thought
they could have a look at it
if I send them my IP addres + ":8080", it did the trick back in the times
when I was
using tomcat.
So I'm basically asking whether there's some restriction by default on
Glassfish
that I should disable so that people from the internet can visit the site
(by my external IP, which is now 86.106.250.190).
The connection was DHCP but my ISP decided to make my DHCP modem run in some
router mode, I'm not sure what that means, so I don't know who's fault that
is, here's a screenshot of my internet settings:

http://xlinuks.googlepages.com/myip.jpeg

Kristian Rink-6 wrote:
>
> xlinuks schrieb:
> [...]
>> does anyone know why people outside localhost can't access my site?
>> I removed the ufw and rebooted, still I can access my site only by
>> localhost:8080, not by my external IP:8080, does anyone know what's the
>> matter?
>
> What does "outside localhost" respectively "external IP" mean in your
> context? Are we talking about some kind of LAN, or do you want other
> people
> somewhere on "the internet" to be able to access your site? If the latter,
> how are you connected to the internet? Some hardware router / DSL modem in
> between you and the rest of the world eventually? Last of all, what does
> "can't access my site" exactly mean? Do they get an error message? If so,
> which one? :)
>
> Cheers & all the best,
> Kristian
>
> --
> Kristian Rink
> cell : +49 176 2447 2771
> business: http://www.planconnect.de
> personal: http://pictorial.zimmer428.net
> "we command the system. calling all recievers.
> we are noisy people for a better living".
> (covenant - "monochrome")
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Can%27t-access-site-on-GlassFish-outside-localhost...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Kristian Rink

Hi there;

xlinuks schrieb:
> if I send them my IP addres + ":8080", it did the trick back in the times
> when I was using tomcat.

Can you try the same right now to see whether it still works with tomcat
using the current configuration? This would be of quite some help to know
whether or not glassfish could be blamed for that, because...

[...]
> The connection was DHCP but my ISP decided to make my DHCP modem run in some
> router mode, I'm not sure what that means, so I don't know who's fault that
> is...
[...]

If the device used to be a modem initially, chances are your very host did
have the "external" IP address assigned directly in terms of TCP/IP so
accessing your-external-ip:8080 indeed did hit your machine. Switching the
device to router mode, the modem (now router) has the external IP assigned,
while your machine has some LAN IP address assigned to its interface
(according to your screenshot something in the 192.168.1.0/24 network). This
way, while someone accessing your-external-ip:8080, (s)he involuntarily will
hit the external side of the router (and not your host) and so not reach
your tomcat/glassfish. In terms of security this is a reasonable and good
approach, chances however are you have to somehow "tell" your router to
forward all requests coming to your-external-ip:8080 to
your-internal-host-ip:8080 (not localhost:8080!) to make them reach
glassfish/tomcat.

To tell whether or not this is the case, please shut down glassfish and try
the same using tomcat. If it won't work with tomcat as well, your router
configuration needs to be modified accordingly. If it works with tomcat, we
have to check glassfish... but I really think, according to your
description, that it's a router configuration issue...

Cheers,
Kristian

--
Kristian Rink
cell : +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

xlinuks

OMG thank you a lot, unfortunatelly tomcat also only runs on localhost, so
you're right..
thanks again a lot! I now understand what's the matter.

--
View this message in context: http://www.nabble.com/Can%27t-access-site-on-GlassFish-outside-localhost...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net