<div dir="ltr">Here is a very simple use of the <font face="monospace">WebServer</font> class that can be installed with<div><font face="monospace">Feature require: 'WebClient'</font>. A fileOut containing this code is attached.</div><div>The class name is <font face="monospace">BasicWebServer</font> and it has the single instance variable <font face="monospace">server</font>.</div><div>It contains only these instance methods.</div><div><br></div><div><font face="monospace">initialize   <br>    server := WebServer new.<br>    server addService: '/' action: [:req | req send200Response: 'Hello, World!'].</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">start<br>    server listenOn: 3000<br clear="all"></font><div><font face="monospace"><br></font></div><div><font face="monospace">stop<br>    server stopListener</font><br></div><div><br></div><div>I can start the web server with:</div><div><br></div><div><font face="monospace">server := BasicWebServer new.</font></div><div><font face="monospace">server start.</font></div><div><br></div><div>Then I can browse localhost:3000 and see "Hello, World!" in the web browser.</div><div><br></div><div>I can stop the web server with:</div><div><br></div><div><font face="monospace">server stop.</font></div><div><br></div><div>But I cannot start it again unless I restart the VM. Can someone please explain what else I can do to enable restarting the server without needing to restart the VM?</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div></div>