• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding the BeatBox Server IP Address - Head First Java

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have coded (and learned) the BeatBox with (chat) program from Head First Java. If I want to give the beat box program to my friends in other locations, should I change the IP address and the send the code to them. or can i just send the code which I am using.

I feel we cant use 127.0.0.1 IP address to send it to others.. Please clarify.

thanks
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I feel we cant use 127.0.0.1 IP address to send it to others.. Please clarify.



127.0.0.1 is the loopback address. From any machine, you can get to the same machine using that address.

Henry
 
Dinesh Kumar Tadepalli
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one more basic question!? Do my friends whom I send the Beatbox code should run the music server tooo? or is it just me who will run the music server?

thanks
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dinesh Kumar Tadepalli wrote:I have one more basic question!? Do my friends whom I send the Beatbox code should run the music server tooo? or is it just me who will run the music server?

thanks



If your friends will be using 127.0.0.1 as the connection address, then your friend's server can only connect to your friend's server. They won't be connecting to your server. They won't be connecting to each others server. The client can only connect to the same server as the client.

That's why the address is a loopback address.

Henry
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to ask your friend's WAN IP address and use that IP address in your beatbox program to connect to your friend. Your friend should have the client for the beatbox.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic