• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access glassfish remotely  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I’ve installed glassfish application server on linux. So, I deployed an application, and all works fine. But I can Access this server only from local network. I can’t access glassfish remotely (cant access application or glassfish administration panel). Where can be a problem? Thanks!
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you ping your server remotely?
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at http://docs.oracle.com/cd/E19776-01/820-4495/ggnfu/index.html

The address should be 0.0.0.0 in order for the server to be access anywhere. If it's a specific IP then it's only that IP can access glassfish.

If you are able to access the admin console locally then you should able to change the address directly.
Configuration -> server-config -> HTTP service -> HTTP listeners

I reckon you need to change all for 4848 (admin console), 8080 (default HTTP) and 8181 (default HTTPS)

Remember to restart glassfish about the changes.
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "remotely" mean - are there firewalls in between? How exactly are you trying to access it - which URL are you using?
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you ping your server remotely?


Yes I can. Also I can access apache server on this host by 80 port. But I can't access my glassfish.
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "remotely" mean - are there firewalls in between? How exactly are you trying to access it - which URL are you using?


Yes, there are firewalls. But how can I check, is a problem in a router or in a linux system or in something else?
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andris Sigs wrote:
Can you ping your server remotely?


Yes I can. Also I can access apache server on this host by 80 port. But I can't access my glassfish.


Is your server hosted by some ISP? If so then it should be as simple as http://www.mydomain.com:8080 to access glassfish

More importantly is glassfish running?
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your server hosted by some ISP?

It is our peronal server. This server is located in our local network.

More importantly is glassfish running?

Yes. I can access glassfish from local network, but I can't access them from external networks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there are firewalls. But how can I check, is a problem in a router or in a linux system or in something else?

You didn't say which URL you're trying to access, but I'm guessing that only port 80 is open on the firewall. So other ports like 4848 and 8080 are not accessible. If so, you'll have to talk to the network admin about that; my guess is that they will stay closed, though.
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say which URL you're trying to access, but I'm guessing that only port 80 is open on the firewall. So other ports like 4848 and 8080 are not accessible. If so, you'll have to talk to the network admin about that; my guess is that they will stay closed, though.


URL is "somehost:8080/web_war_exploded/". But from local network computers I can access this address. Can this ports be closed only for external network computers? How can I check, is problem in router firewall on in some another thing?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way would be to ask the network admin. And yes, it's possible -and quite normal- for ports to be closed to the outside that are accessible from the inside.
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I can't ask my admin now Is there different way?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try telnet: "telnet somehost 8080" will just sit there (and eventually time out) if the port is not open.

Or, if you have an Android phone, you can use the app listed in my signature - it has a port checker built in
 
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helpful hint for using telnet. If you can connect to the server port, type "GET" at the telnet command prompt. This should return back an HTML output. In fact, the HTML you'd get from aiming your browser at that port.

This isn't an accident. The Internet and many of its basic protocols were designed to allow many different kinds of computers to talk together. They didn't have common byte organizations or even character sets, so the lowest common denominator - plain text - was what they used and telnet was an easy way for them to test the early protocols.

If you have Apache installed and cannot get firewall access to port 8080, you can configure Apache to serve as a proxy to Glassfish and talk to it via port 80.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!