February 7th, 2012, 12:15 AM
|
#1 (permalink)
|
|
New Member
Join Date: Dec 2010
Posts: 6
Device(s):
Thanks: 6
Thanked 0 Times in 0 Posts
|
Socket networking
I'm trying to set up a basic network connection using droids but I'm having problems.
my server program:
Code:
ServerSocket ss = new ServerSocket(8888);
while(!end){
//Server is waiting for client here, if needed
Socket s = ss.accept();
.....
Client program:
Code:
try {
Socket s = new Socket(*my ip address*,8888);
.....
the server runs until it reaches ss.accept() like it should but the client still can't connect. The client usually times out and nothing happens
I'm running both these programs using eclipse on my computer. I set the premissions in the manifest for both programs to let them use the internet and I have the port forwarding so I don't think that's the problem either.
Can anyone help me?
|
|
|