Mikrotik Setup for outside access

Hi Guys

I’m having some issues trying to setup my outside access to my Pi.
I’m using a mikrotik router which has cloud access setup: http://***.sn.mynetname.net:8123/
My port fowarding has been setup by my ISP, and I tried the same setup from my side with no luck.

Every time I try to connect to the Dynamic IP or cloud address it says: ERR_CONNECTION_TIMED_OUT

Any advice, please! :slight_smile:

I never heard of a mikrotik router so can’t comment on this device specifically, but normally you have to set up port forwarding on your router, it’s not your ISP that does that.
What happens you you access http://ip:8123 where ip is your public IP as given my http://whatismyip.com ?

My ISP has admin access to my router. The port forwarding setup is the same way I setup, I just deleted my port fowarding and asked them to try it to see if I missed anything as the mikrotik is quite a complex router.

Just testing now, the HA app connects successfully to http://***.sn.mynetname.net:8123/ or http://ip:8123/ but as soon as try and connect through a web browser it timesout.

Which HA app you mean? An iOS or android app?
If so, are both your phone and computer (where you try the web) on the same network? You may need to edit your host file to point your http://***.sn.mynetname.net:8123 to your local HA server’s IP address

Thanks for your help @lolouk44
I think I have figured out my issue, i’m currently outside my house but the wifi network i’m on is using a proxy server and seems to be blocking the connection.
I access it through my mobile connection with out the wifi connection it works.

1 Like

Also, if you are behind a carrier grade NAT, you might not be able to get it working. Does your Mikrotik have a public IP address on it’s WAN interface?

/ip firewall nat

add action=masquerade chain=srcnat comment=“hairpin nat pre homeassistant”
dst-address=192.168.100.11 dst-port=8123 out-interface=bridge1-lan
protocol=tcp src-address=192.168.100.0/24

add action=dst-nat chain=dstnat comment=“portforward pre homeassistant”
dst-address=!192.168.100.1 dst-address-type=local dst-port=8123
log-prefix=fwd protocol=tcp to-addresses=192.168.100.11 to-ports=8123

Hi,
so I deployed Mikrotik RB2011UiAS-2HmD.
The network is more active than with the Zyxel Vmg8924 b30a. Mikrotik manages everything himself, including VDSL. Everything works for me (PC, TV, and others …) I set it up according to StefanikM Milan.
Unfortunately some things IoT (TUYA) do not work according to this configuration. With Zyxel without any problems.
For example: Error while executing automation automation.reload_tuya.
Map ZigBee2mqtt + DeConz makes a mistake:
MQTT publish: topic ‘zigbee2mqtt / bridge / response / networkmap’, payload ‘{“data”: {}, “error”: "Cannot read property’ stack 'of undefined", “status”: “error”, “transaction” : “mviov-2”} ’

So I don’t know how to solve it anymore …
Thank you for your help