This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

BeatBoxFinal program in HFJ 2, an extra question.

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,

just out of interest, this program; it works fine, but I am only testing this on my machine.

what would I need to change if I wanted a friend to use this, so we can chat and exchange beat patterns?

I have my computer behind a router and they live in a different house, so what would I need to do to have this program work between both parties?

davy
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you're asking is how to "deploy" an application -- that is, how to package it so that another user can easily launch it. For this, you might consider creating an executable Java Archive (JAR). See JavaRanch FAQ - JAR Files.
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc, yes I would have got to that eventually, my main concern was the IP addresses, would I send out the server classes to a server, and have my friend and I run the main beatbox program, so that we can test it out?

If I do need to change the IP address, would I get the main program to go to a certain IP address and have the server get the IP address as the program logs in so to speak?

davy
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would give the ip address of the router, and then open and point the port in router to the computer that the application is running on. Also, make sure your firewall isn't blocking the port.
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so say i wanted to test this...

I could keep the server class running on my machine.
My friend and I run the client class on each machine.

each client class would look for my routers IP address (specifically given in the code)

and then the programs would work and we could chat and send beats?

have I got this right?

davy

p.s. sorry to keep asking...

would it be ip of cable modem, Router & computer

my modems IP of say something like: 86.13.***.***
my routers IP of say something like 192.***.***.***
my computers IP of say something like: 192.***.***.***
[ January 02, 2007: Message edited by: Davy Kelly ]
 
Do you want ants? Because that's how you get ants. And a tiny ads:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!