Good morning.
I’m currently using a laptop connected via WiFi to a router. Let’s suppose that the laptop has been assigned the address
X.Y.Z.T
(which is contained in the network
192.168.11.0/24
). Let’s suppose that the CHR has the address 192.168.11.1/24 assigned to the interface “ether1”.
In that laptop, I have set up a MikroTik CHR (using VirtualBox - Bridge Adapter). I can successfully connect to said CHR via WinBox in my laptop. Additionally, the CHR can ping the laptop successfully.
The laptop runs a program in C# with a single available “GET” endpoint: “HomeController1”. When running the program from desktop, I can successfully reach the endpoint by using PostMan. Specifically, the PostMan call that I use is the following:
https://localhost:7250/HomeController1
.
However, if I try to fetch the API from the CHR, I get the error “status: failed; connection refused”. The command that I’m using is the following:
/tool fetch url="https://X.Y.Z.T:7250/HomeController1 check-certificate=no
.
Regarding the MikroTik configuration, I have not set up anything special other than indicating this route:
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=ether1 routing-table=main \
suppress-hw-offload=no
Furthermore, the Windows firewall is disabled, so I can’t quite understand why the API endpoint can’t be fetched successfully. Is there any extra configuration I can set up?
Thank you very much for your attention and best regards.