You can only connect to an IRC server using the ports that the server has open, which for IRC, 6660-6669, 7000 are the most common. So unless your IRC server is listening on port 5190 for client connections, no it won't work.
~ Edit ~
If you are caught circumventing network security, you could be banned permanently or worse. You really should consider just waiting out the ban.