How to connect router to ryu controller

hi guys.
I'm a new member. I want to connect my router with ryucontroller(a python file in my pc). how can i do that, i watch a lot of videos on youtube and its almost use mininet. help me please!