make sure you typing the ip and port in right! also make sure to put a name in, then click save or play.. If that's not the problem maybe try using your mobile data or a different wifi network.. Just check your wifi out to see if that's the problem... If none of this is working make sure your minecraft privacy settings says you can play online.