• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket Programming

 
nayomi gunawardena
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server Implementation



Client Implementation



is there any wrong codes?? Please help me to find out..Because this wont work..I want to make this work
 
Tim Moores
Bartender
Posts: 2957
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "this wont work" mean? Blue Screen Of Death?
 
nayomi gunawardena
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server is executed entering the port as 20000 for args[0], then client is also executed in a separate cmd entering 20000 for args[1]..But an exception occurred
 
Tim Moores
Bartender
Posts: 2957
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Were you planning on letting us know what that exception is, or are we supposed to guess?
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ItDoesntWorkIsUseless. TellTheDetails. You should start by showing the stack trace.

However, I've tried your server and client on my local PC, and it worked. Therefore, I think that there is a network issue; perhaps a firewall is blocking the connections.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nayomi gunawardena wrote:Server Implementation



Client Implementation



is there any wrong codes?? Please help me to find out..Because this wont work..I want to make this work

you could probably gettin exception because you would have used port which is already binded like 21 and and all
use port above 1024 or just go up like 6000 something port
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic