This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Can't access web server in local network.  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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)
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!