• 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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: 20310
110
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.
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!