# Omnicore virtual controller (RW7) web service change to http in appweb.conf doesn't work

**URL:** <https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717>\
**Category:** Robot Controller\
**Created:** [November 28, 2024, 10:38am UTC](https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717 "2024-11-28T10:38:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LBPAL3](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@LBPAL3](https://tech-community.robotics.abb.com/u/LBPAL3)\
**Post date:** [November 28, 2024, 10:38am UTC](https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717/1 "2024-11-28T10:38:02Z")

</div>

Hi all,

I recently started development on Omnicore project. I have created an robot simulation with RW7 Omnicore. And I would like to use the web service as I did in the past for RW6.

And I found online that Omnicore is can support https and http where you just need to modify the parameter on appweb.conf listen port.

> **[ABB Robotics Community - Maintenance](https://forums.robotstudio.com/discussion/12180/how-to-get-started-with-robot-web-services-and-jog-a-robot-via-rest-api-requests)**

I tried to change the first parameters from:  
#Listen -1  
ListenSecure -1

to

Listen -1  
#ListenSecure -1

But when I use Listen instead of ListenSecure, after reboot the virtual controller, I have error on controller

Picture uploaded to this link [abberror1 hosted at ImgBB — ImgBB](https://ibb.co/hmH2RKy)

It doesn’t have any issue when I switch back to ListenSecure.

May I know did Omnicore required particular option to enable web service?

And I couldn’t find the virtual controller listening port from the netstat -aon | FindStr command as thread below. I am only able to get a response if I try on the robotstudio.exe PID instead of RobotVC.exe

> **[ABB Robotics Community - Maintenance](https://forums.robotstudio.com/discussion/12177/how-to-change-the-listening-port-of-the-virtual-controller-robotware-6-x-and-7-x)**

And the webservice command doesn’t work on the robotstudio.exe listening port.

Thanks for the help in advance.

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [November 28, 2024, 12:53pm UTC](https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717/2 "2024-11-28T12:53:40Z")

</div>

Hello there,

Thanks for pointing out some mistakes in the initial post. I have now corrected the post to contain correct information for OmniCore.

So if you want OmniCore to listen on HTTP as well as HTTPS, you’ll have to uncomment the Listen -1 and change the -1 to some open port. I wouldn’t recommend disabling HTTPS on OmniCore as that would cause RobAPI exceptions in RobotStudio.

Then, regarding “netstat -aon | FindStr”, you should find the process Vrchost64.exe for OmniCore controllers instead and use that pid in the command.

---

<div class="post-metadata">

**Author:** ![LBPAL3](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@LBPAL3](https://tech-community.robotics.abb.com/u/LBPAL3)\
**Post date:** [November 29, 2024, 1:57am UTC](https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717/3 "2024-11-29T01:57:27Z")

</div>

Thanks Maxim,

I am able to see the virtual controller listening port based on Vrchost64.exe

My next roadblock is I tried a few command but all of them return with error 401 unauthorized.

I am using username : Default User; password: robotics

my curl command : curl -u “Default User”:robotics "[http://127.0.0.1:51000/rw/elog](http://127.0.0.1:51000/rw/elog)

I set my listen port to 51000 and below is my netstat response on Vrchost64.exe PID

C:\Users\Boon Ping Lai\>netstat -aon | FindStr 12608  
TCP 0.0.0.0:5466 0.0.0.0:0 LISTENING 12608  
TCP 0.0.0.0:50424 0.0.0.0:0 LISTENING 12608  
TCP 0.0.0.0:51000 0.0.0.0:0 LISTENING 12608  
TCP 127.0.0.1:5466 127.0.0.1:52874 ESTABLISHED 12608  
TCP 127.0.0.1:5466 127.0.0.1:53095 ESTABLISHED 12608  
TCP 127.0.0.1:50424 127.0.0.1:50427 ESTABLISHED 12608  
TCP 127.0.0.1:50424 127.0.0.1:52873 ESTABLISHED 12608  
TCP [::]:5466 [::]:0 LISTENING 12608  
TCP [::]:51000 [::]:0 LISTENING 12608  
UDP 0.0.0.0:55682 _:_ 12608  
UDP 127.0.0.1:55683 _:_ 12608

My URL GET command response

HTTP/1.1 401 Unauthorized  
Vary: Accept-Encoding  
Keep-Alive: timeout=300, max=2147483646  
Content-Type: text=html  
X-Content-Type-Options: nosniff  
Date: Fri, 29 Nov 2024 01:25:31 GMT  
Cache-Control: no-cache  
Content-Length: 29  
X-XSS-Protection: 1; mode=block  
Connection: Keep-Alive  
WWW-Authenticate: Basic realm=“validusers@robapi.abb”  
Accept-Ranges: bytes

HTTP/1.1 406 Not Acceptable  
Set-Cookie: -http-session-=17::http.session::b6949b46571ffdc79d0d2d957e8e2560; path=/; domain=127.0.0.1; httponly; SameSite=None  
Set-Cookie: ABBCX=1769482; path=/; domain=127.0.0.1; httponly; SameSite=None  
Vary: Accept-Encoding  
Keep-Alive: timeout=300, max=2147483645  
Content-Type: application/xhtml+xml;v=2.0  
X-Content-Type-Options: nosniff  
Date: Fri, 29 Nov 2024 01:25:31 GMT  
Cache-Control: no-cache=“set-cookie”, max-age=0, no-cache, no-store  
Content-Length: 413  
X-XSS-Protection: 1; mode=block  
Connection: Keep-Alive  
Pragma: no-cache  
Expires: -1  
Accept-Ranges: bytes

?xml version=“1.0” encoding=“UTF-8”?  
html xmlns=“[XHTML namespace](http://www.w3.org/1999/xhtml)”  
head  
base href=“[http://127.0.0.1:51000/](http://127.0.0.1:51000/)”  
head  
body  
div class=“status” span class=“code”\>-1073414146  
span  
class=“msg”\>C:\a\1\s\S0.01.Kernel\Areas\RobApi2\Components\rws\_rapid\rws\_resource\_rapid\_modules.cpp[62] Server cannot generate response for given accept header code:-1073414146 icode:-1  
span  
div  
body  
html

Is this due to unauthorized account login?

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [November 29, 2024, 8:14am UTC](https://tech-community.robotics.abb.com/t/omnicore-virtual-controller-rw7-web-service-change-to-http-in-appweb-conf-doesnt-work/11717/4 "2024-11-29T08:14:05Z")

</div>

It looks like the headers aren’t correctly setup. The post you linked to in your initial post covers required header settings.
