Archived
This forum has been archived. Please start a new discussion on GitHub.
static client remote port
JAX82
in Help Center
Hi,
Sorry if it is a basic question but I dont find the answer in the doc and I'm in a hurry.
How can I define a static client remote port?
I have a server listening in port 10000, and when a client connects, I can see the connection information as (Java):
It give, for example:
I must know before connection the remote client port (1113).
So I need to define this port statically in the client.
It is possible?
Thanks.
Sorry if it is a basic question but I dont find the answer in the doc and I'm in a hurry.
How can I define a static client remote port?
I have a server listening in port 10000, and when a client connects, I can see the connection information as (Java):
System.out.println("INFO:" + __current.con.toString();
It give, for example:
local address = 150.1.0.25:10000 remote address = 150.1.0.87:1113
I must know before connection the remote client port (1113).
So I need to define this port statically in the client.
It is possible?
Thanks.
0
Comments
-
Hi,
No, it's not possible. The port number for the client connection is selected by the operating system and can't be set through configuration.
See also this FAQ for information on ports opened by Ice applications.
Cheers,
Benoit.0
