Bind port in remote mode

42 views
Skip to first unread message

张毅航

unread,
Jul 19, 2021, 9:07:11 AM7/19/21
to Pantheon
Hi,

I notice that in either remote or local mode, mm-tunnelserver will choose random port which is a big number.

However, as I can only access to limited number of available port, namely 6131-6141, is there any way to change the mm-tunnelserver so that it can choose a fixed port?

Looking forward to your reply.

Francis Y. Yan

unread,
Jul 19, 2021, 1:52:50 PM7/19/21
to 张毅航, Pantheon
Hi Yihang,

Thanks for your question.

Changing this line
https://github.com/StanfordSNR/pantheon-tunnel/blob/master/src/frontend/tunnelservershell.cc#L117
to
listening_socket.bind( Address( "0", 6131 ) );
should do the work.

Best,
Francis

--
You received this message because you are subscribed to the Google Groups "Pantheon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pantheon-stanf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pantheon-stanford/4f7a10aa-2d2f-48e1-94cf-2c5f3fae3c4bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages