Fixed the issue by manually enabling network permissions to the app in application, it was disabled by default for some reason. Maybe it is a security thing in Lineage OS or Android it self.