@Test
    public void testParseRemoteHostIp() {
        Connection conn;
        try {
            parser.initUrlArgs(connAddress);
            conn = client.getConnection(connAddress, 1000);
            Channel channel = conn.getChannel();
            String res = RemotingUtil.parseRemoteIP(channel);
            Assert.assertEquals(localIP, res);
        } catch (Exception e) {
            Assert.assertFalse(true);
        }
    }
parse channel to get ip (format [ip])
src/test/java/com/alipay/remoting/inner/utiltest/RemotingUtilTest.java