Marauroa Chat Tutorial: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Fjacob Changed port number from 555 to 5555, as ports under 1024 need root privilegs on linux |
imported>Fjacob m Changed port number in the client code, too. |
||
| Line 387: | Line 387: | ||
Client my = Client.get(); |
Client my = Client.get(); |
||
try { |
try { |
||
my.connect("localhost", |
my.connect("localhost", 5555); |
||
if (args.length == 3) { |
if (args.length == 3) { |
||
my.createAccount(args[0], args[1], args[2]); |
my.createAccount(args[0], args[1], args[2]); |
||
| Line 489: | Line 489: | ||
try { |
try { |
||
client = Client.get(); |
client = Client.get(); |
||
client.connect("127.0.0.1", |
client.connect("127.0.0.1", 5555); |
||
client.login("test1", "test1"); |
client.login("test1", "test1"); |
||
client.chooseCharacter("test1"); |
client.chooseCharacter("test1"); |
||