Archived

This forum has been archived. Please start a new discussion on GitHub.

there is a question about socket's port

the question is like this:

client can call the servant object in server, so there is a port in server,but there isn't a port in client.

I mean that there should be a port(socket's port) which the request client sends will pass by,but I can't see it in the demo's codes and the config file, and I must appoint a port in the client in my project,so I wonder what should I do.

Thank you very much.

Comments

  • marc
    marc Florida
    There is no possibility to manually choose a client-side port (i.e., a port used for outgoing connections) in Ice. This port is always chosen automatically. (If you have a commercial need for an extension that allows you to manually choose client-side ports, please contact us at info@zeroc.com.)
  • If I modify the source of Ice, will I be successful?

    if it is, could you tell me which file(.h & .cpp) and which function I must do something in?

    BTW,it isn't a commercial need.

    Thank you very much.
  • marc
    marc Florida
    I'm afraid this is not a simple change, that I could describe here in a newsgroup posting. This would take me a day or so to implement.