How change the ikvm port to 5901

xiuzhi 1450335857 at qq.com
Tue Mar 17 14:11:55 AEDT 2020


Hi Jae,Eddie, 
    I want to change the ikvm server port from 5900 to 5901 .
I try to modify the following source:
1. obmc-ikvm
--- a/ikvm_server.cpp    2019-09-03 05:47:42.060110145 +0800
+++ b/ikvm-server.cpp    2020-03-16 15:45:59.389571737 +0800
@@ -43,7 +43,7 @@
                                     (char*)cursorMask);
     server->cursor->xhot = 1;
     server->cursor->yhot = 1;
-
+    server -> port = 5901 ;
     rfbStringToAddr(&ip[0], &server->listenInterface);
 
     rfbInitServer(server);
2. bmcweb
--- a/include/kvm_websocket.hpp    2019-12-19 18:11:38.838532037 +0800
+++ b/include/kvm_websocket.hpp    2020-03-17 11:07:09.814836005 +0800
@@ -20,7 +20,7 @@
         conn(conn), doingWrite(false), hostSocket(conn.get_io_context())
     {
         boost::asio::ip::tcp::endpoint endpoint(
-            boost::asio::ip::make_address("::1"), 5900);
+            boost::asio::ip::make_address("::1"), 5901);
         hostSocket.async_connect(
             endpoint, [this, &conn](const boost::system::error_code& ec) {
                 if (ec)

I can connect to ikvm by tightvnc on port 5901 . 

But the webui kvm page don't work, the kvm page cannot connect to the ikvm server success.
How to  modify the webui ?

  Best,
Xiuzhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200317/dfb9ea32/attachment.htm>


More information about the openbmc mailing list