<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-TW" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">You might need to patch bmcweb as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://github.com/openbmc/bmcweb/blob/master/include/kvm_websocket.hpp#L24">https://github.com/openbmc/bmcweb/blob/master/include/kvm_websocket.hpp#L24</a></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Troy<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> openbmc <openbmc-bounces+troy.lee=vertiv.com@lists.ozlabs.org>
<b>On Behalf Of </b>xiuzhi<br>
<b>Sent:</b> Tuesday, March 17, 2020 11:12 AM<br>
<b>To:</b> jae.hyun.yoo <jae.hyun.yoo@linux.intel.com>; openbmc <openbmc@lists.ozlabs.org>; eajames <eajames@linux.ibm.com><br>
<b>Subject:</b> [ExternalEmail] How change the ikvm port to 5901<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Jae,Eddie, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">    I want to change the ikvm server port from 5900 to 5901 .<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I try to modify the following source:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1. obmc-ikvm<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">--- a/ikvm_server.cpp    2019-09-03 05:47:42.060110145 +0800<br>
+++ b/ikvm-server.cpp    2020-03-16 15:45:59.389571737 +0800<br>
@@ -43,7 +43,7 @@<br>
                                     (char*)cursorMask);<br>
     server->cursor->xhot = 1;<br>
     server->cursor->yhot = 1;<br>
-<br>
+    server -> port = 5901 ;<br>
     rfbStringToAddr(&ip[0], &server->listenInterface);<br>
 <br>
     rfbInitServer(server);<br>
2. bmcweb<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">--- a/include/kvm_websocket.hpp    2019-12-19 18:11:38.838532037 +0800<br>
+++ b/include/kvm_websocket.hpp    2020-03-17 11:07:09.814836005 +0800<br>
@@ -20,7 +20,7 @@<br>
         conn(conn), doingWrite(false), hostSocket(conn.get_io_context())<br>
     {<br>
         boost::asio::ip::tcp::endpoint endpoint(<br>
-            boost::asio::ip::make_address("::1"), 5900);<br>
+            boost::asio::ip::make_address("::1"), 5901);<br>
         hostSocket.async_connect(<br>
             endpoint, [this, &conn](const boost::system::error_code& ec) {<br>
                 if (ec)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I can connect to ikvm by tightvnc on port 5901 .
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">But the webui kvm page don't work, the kvm page cannot connect to the ikvm server success.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">How to  modify the webui ?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">  Best,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Xiuzhi<o:p></o:p></span></p>
</div>
</div>
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail
 in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.
</body>
</html>