@Test
    public void testParseLocalAddress() {
        Connection conn;
        try {
            parser.initUrlArgs(connAddress);
            conn = client.getConnection(connAddress, 1000);
            Channel channel = conn.getChannel();
            String res = RemotingUtil.parseLocalAddress(channel);
            Assert.assertNotNull(res);
        } catch (Exception e) {
            e.printStackTrace();
            Assert.assertFalse(true);
        }

    }
parse channel to get address(format [ip:port])
src/test/java/com/alipay/remoting/inner/utiltest/RemotingUtilTest.java