• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Can't access web server in local network.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I am testing a local network with Comcast's Xfinity internet service at home. I am able to access my Wildfly 8 web server using http://127.0.0.1:8080. Then I started the sever: [abigail@localhost bin]$ ./standalone.sh -b=10.0.0.17

where 10.0.0.17 is my internal IP assigned by the Xfinity modem. And Now I can access the web server on my OWN machine using http://10.0.0.17:8080.

However, I can't access this web server from another laptop within the same network at home. The laptop (IP: 10.0.0.7) is connected wireless network.

How can I configure the Wildfly 8 to make other machine in the same local network able to access the server? I don't think it has anything to do with Xfinity modem? It's basically a question of configuring a local network issue in Wildfly.

I looked at this FAQ https://developer.jboss.org/wiki/JBoss42FAQ and tried start the server with ./standalone.sh -b=0.0.0.0. It still doesn't work.

Any ideas? Thank you.
 
marlon min
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It turns out that it's a firewall issue. I stop the firewall by:



My other computers in the network now can access it. However, computers outside of the network still can't access it. I added one entry in the "port forwarding" of Xfinity modem.
 
marlon min
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I am able to access my websever from any computers in the local network by assigning the "zone" to "public", and add port:8080 to it. I did this through the GUI firewall-config, which is quite convenient.

But I still can't access the server from computers outside of the local network. Should I change the zone from "public" to "external"? Or it's not necessary?

My thought was that the zone "public" should be fine. What I need to do is to add "port forwarding" for the public zone through firewall-config. But how to fill the port range and IP, as shown in the attachment?

Also, do I also need to set "port forwarding" in my ISP comcast Xfinity modem? Are the two "port forwarding" the same thing? Thank you.
snapshot1.png
[Thumbnail for snapshot1.png]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to be sure, did you really use:


./standalone.sh -b=10.0.0.17



If so, then it's incorrect. There should be no '=' sign in there. It should be:


(notice the space between the -b and the value)
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic