I am writing an asp.net mvc project on my ubuntu laptop. I want to be able to see how the website looks on my mac and winndows boxes. How can I get monodevelop to start xsp2 so that it listens on an external IP?
My ufw firewall is off. I have looked in man xsp2
, I can see you can set the IP to listen on but can't see how you get monodevelop to launch it with different options.
Edit: I want to get monodevelop to start xsp2 (i.e. when I hit f5/ctrl+f5 for debugging) so it listens externally (I know how to launch it on it's own).
I did a ps -aux
and found monodevelop launches xsp2 like this:
/usr/bin/mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:35479 /usr/lib/mono/2.0/xsp2.exe --port 8080 --address 127.0.0.1 --nonstop --verbose
I need to get monodevelop to launch xsp2 with --address 0.0.0.0
but how?
Edit 2: Running this with my project dir as my current directory works fine:
/usr/bin/mono /usr/lib/mono/2.0/xsp2.exe --port 8080 --address 0.0.0.0 --nonstop
Which is ok, but I don't get the useful debugging stuff because I am running it outside of monodevelop.
I have now tried editing my web.config to add the following:
<appSettings>
<add key="MonoServerAddress" value="0.0.0.0" />
</appSettings>
... which does not work. Monodevelop still launches xsp2 with 127.0.0.1 on the command line, which I take it is overriding the value in the web.config. This is the same whether I debug (f5) or run (ctrl f5).
Is it possible to get monodevelop to start xsp2 with a different --address?
Have you tried going in the project options> Run> XSP Web Server> IP Address and put the IP of the computer running MonoDevelop? Like 192.168.1.x