Forums Register Login

Regarding the BeatBox Server IP Address - Head First Java

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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.
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1374 times.
Similar Threads
Head first java beatbox - anyone else problems?
HeadFirst BeatBox: Getting the buttons to be aligned center
Head First Java - BeatBox Code
beatbox (Headfirst ch 13)
HFJ BeatBox program, problems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 05:35:48.