Win a copy of Microservices in Action this week in the Web Services 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Why need to bind address in Linux but not Windows  RSS feed

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've two Wildfly servers, one under Windows OS and another under Linux.
I'm curious as to why we have to bind the IP address during start up in Linux
environment, but it's not needed in Windows.

./standalone.sh -b=0.0.0.0

If the above is not done in Linux, the deployed application would not be accessible
by a remote browser.

Can anyone please shed some light on this.

Thanks.
 
Bartender
Posts: 19996
95
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, what you are really doing is overridingp the default bind (listener) address. Its default value us 127.0.0.1 (localhost).

As I recall, Wildfly has a fairly complicated startup script, which is OS-dependent, since Linux cannot run Windows BAT files and Windows doesn't normally have anything like the Unix bash shell. It's probable that when the Windows environment was created that it was set to default to bind on 0.0.0.0.

Actually, the reason why Linux would be binding by default to 127.0.0.1 is that it's more secure. If a system is wide open straight out of the box, it's more susceptible to attack. So the reasoning is that you can configure it as a local user before releasing it to the cold, cruel world.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!