I'm currently using a laptop connected via WiFi to a router. Let's suppose that the laptop has been assigned the address
Code: Select all
X.Y.Z.T
Code: Select all
192.168.11.0/24
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:
Code: Select all
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:
Code: Select all
/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:
Code: Select all
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=ether1 routing-table=main \
suppress-hw-offload=no
Thank you very much for your attention and best regards.