Bug 11971 - Allow for a configurable port number for mtbserver
Summary: Allow for a configurable port number for mtbserver
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.1.x
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-04-25 15:01 UTC by Chris Hardy [MSFT]
Modified: 2015-01-05 11:19 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Hardy [MSFT] 2013-04-25 15:01:09 UTC
Allow the port number used for connection between the PC machine and Mac Build Host to be configurable to avoid conflicting port numbers with other services.
Comment 1 Marek Habersack 2013-04-26 02:42:48 UTC
mtbserver itself supports that, but the problem is that the port to listen on is created and maintained by launchd - it's specified in the /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist file. Changing it would have to happen on mac side installation time which, in turn, would require introducing interactivity into monotouch post-installation script. However, you should be able to modify the file mentioned above and VS *should* pick that change up by way of Bonjour.

Note that for launchd to notice the change you must use launchctl {unload,load} on the script.
Comment 2 René Ruppert 2014-06-30 11:17:07 UTC
Visual Studio does not automatically pick up the port unfortunately.