• Post Reply Bookmark Topic Watch Topic
  • New Topic

BeatBoxFinal program in HFJ 2, an extra question.  RSS feed

 
Davy Kelly
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
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 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
 
Nicholas Carrier
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!