port 2 « Socket « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » Socket » port 2 

1. one socket and two ports, not getting response from the server    forums.oracle.com

Hi everyone, I am working on device which communicate through Tcp sockets, It has an IP address and one port for listening and another for sending the response. Problem is that I am able to create a connection to Device ip+port, and i am trying to listen on the same port while the device is sending the response on other port. ...

2. check socket in port    forums.oracle.com

You could try and connect to it. I don't understand what you mean by your point (1). (2) is a bit misleading because it it fails you won't have to worry about closing it. I wouldn't do what you are doing though aka the test. Just do it, if it fails with a bind exception you know what that means. But ...

3. more ports? sockets    forums.oracle.com

Hello, I'm trying to add to my server an extra port. If i do port.accept() it just waits for connecting to it, that's no problem for one port. But now i would like to add an extra, and can't find much information to handle it. Hope to get some help here, greets.

4. Port forwarding using Socket    forums.oracle.com

Surely that would simply read a maximum of 1028 bits then not bother with the rest of the stream unless you include something to test if there is more available. No. Read that javadoc. You should write a loop that calls read in the loop condition, almost like what you had in your first post, but with arrays. You can't use ...

5. Socket listening to multiple ports.    forums.oracle.com

Hi all, I am new to java programming and I need to program a java program that the socket server will open 20 port and keep listening. The client will connect to any of the 20 port and send information. I have tried using array to open the port. however, there is some error. I tried searching the website however those ...

6. Socket listening to multiple ports.    forums.oracle.com

Hi all, I am new to java programming and I need to program a java program that the socket server will open 20 port and keep listening. The client will connect to any of the 20 port and send information. I have tried using array to open the port. however, there is some error. I tried searching the website however those ...

7. Using new Socket( host, port );    forums.oracle.com

how long does it take for a client to connect to the server.. How long does socket = new Socket( host port); take? I ask because if it takes longer on some computers, my clients wont connect in the correct order.. Example: Client1 is sent to the server then Client2 is sent to the server then Client3 is sent to the ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.