Hi Rei
And thanks again for the help.
I might be wrong here but TCP and UDP usually request a free random port from the system when creating an outgoing connection, in c# there is an option to specify that port (foe udp for sure , tcp I'm less sure , this is rarely used but...)
Just to make sure I'm not mistaken here I did run net stat and indeed the local port on the client was 51435 (run it several times and it always grabbed the next port available 51,000 + ) but the destination port was very different ,
The original issue that led me to this problem has been solved (talked security down from the high tree they climbed) but would still appreciate a feed back.
Is this not supported? am I missing something ? As I mentioned before I saw this discussed in the past on 0mq forums and I was under the impression a patch was implemented to support this, so I assumed NetMQ would also have it.
Check this forum discussion 0MQ - http://grokbase.com/t/zeromq/zeromq-dev/13a5szhz7h/tcp-source-port
Cheers
Mark
Hi Mark,
No worries at all, the thing is, I still don't understand what you mean by "setting the initial port", unless I'm forgetting something about how the TCP stack works, the port you provide in the connect line ie: tcp://localhost:8934, in this case the client will perform an outgoing tcp connection on port 8934 to address localhost. You can easily verify this behavior by using something like tcpview (if on windows), or plain simply netstat.
Please let us know if you continue to have issues with the library and we'll see if we can further help you out.
(Oh and please reply on the google group, you've sent this message directly to me, doesn't bother me at all, just that more people can benefit if when we sort it out :)
Greetings,
Rei
On 24/09/2014 19:30, mark yoffe wrote:
Hi Rei
Thanks for your help, everything you said is true. And in most cases I encountered it was ,enough to state the outgoing address for the FW.
Sadly for one client with extreme secure system, there was a request to set the initial port used.
It might sound crazy, but I guess I'm not alone, as i saw a thread about it on the 0mq mailing lists a few years back, and I think they might have implemented this feature.
Thanks for the info , I'll just have to convince the security people they are overreacting.
Cheers
Mark
Hi Rei
I just verified it and indeed 0MQ latest version support it (implemented in April), NetMQ is not yet there, the minute I'll find a few spare hours I will definitely implement this.
Thanks for taking the time to answer.
Cheers
Mark
--
You received this message because you are subscribed to a topic in the Google Groups "netmq-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netmq-dev/UBIn-YFJ9B0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netmq-dev+...@googlegroups.com.
To post to this group, send email to netm...@googlegroups.com.
Visit this group at http://groups.google.com/group/netmq-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "netmq-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netmq-dev+...@googlegroups.com.
Thanks Doron, Rei
For completeness here is the link to discussion and commit of the aforementioned issue in 0mq
http://grokbase.com/t/zeromq/zeromq-dev/145476hz80/socket-startpoint
Cheers
Mark