<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Hi there,</span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I'm trying to start up the Erlang diameter demo application shipped with Erlang/OTP. The issue is that, no matter what format I try, I can't get the client to connect to a remote diameter server. </span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">In that example, I started the application as follows:</span></div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><font face="Courier New"><div></div><blockquote type="cite"><div>3> diameter:start(), client:start().</div><div>ok</div><div><br></div><div>4> client:connect({tcp,{10,151,0,166},{10,249,20,174},3868}).</div><div>{ok,#Ref<0.0.0.643>}</div><div><div><br></div><div>7> client:call().</div><div>{error,no_connection}</div></div></blockquote><div><br></div></font></div></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Courier New'; border-spacing: 0px; ">Here, my local IP address is </span><span style="font-family: 'Courier New'; ">{10,151,0,166} and the remote one is </span><span style="font-family: 'Courier New'; ">{10,249,20,174}.</span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Courier New'; border-spacing: 0px; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Courier New'; border-spacing: 0px; ">TCP to the server is working:</span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Courier New'; border-spacing: 0px; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div apple-content-edited="true"></div><blockquote type="cite"><div apple-content-edited="true"><font face="Courier New">telnet 10.249.20.174 3868</font></div><div apple-content-edited="true"><font face="Courier New">Trying 10.249.20.174...</font></div><div apple-content-edited="true"><font face="Courier New">Connected to 10.249.20.174.</font></div><div apple-content-edited="true"><font face="Courier New">Escape character is '^]'.</font></div></blockquote><div style="font-family: 'Courier New'; "><br></div><div style="font-family: 'Courier New'; ">I traced diameter_tcp and I can see that it is getting a badarg error somewhere:</div><div style="font-family: 'Courier New'; "><br></div><div style="font-family: 'Courier New'; "><div apple-content-edited="true" style="font-family: Helvetica; "></div><blockquote type="cite"><div apple-content-edited="true" style="font-family: Helvetica; "><font face="Courier New">(<0.114.0>) returned from diameter_tcp:start/3 -> {ok,<0.115.0>,</font></div><div apple-content-edited="true" style="font-family: Helvetica; "><font face="Courier New"> [{10,151,0,166}]}</font></div><div apple-content-edited="true" style="font-family: Helvetica; "><font face="Courier New">(<0.116.0>) call diameter_tcp:handle_info({'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,<b>badarg</b>},{monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true" style="font-family: Helvetica; "><font face="Courier New">(<0.116.0>) call diameter_tcp:m({'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,<b>badarg</b>},{monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true" style="font-family: Helvetica; "><font face="Courier New">(<0.116.0>) returned from diameter_tcp:m/2 -> ok</font></div></blockquote><div><br></div><div><br></div><div>Does anyone have an idea what I am doing wrong? My feeling is that it has to do with the local ip address. I don't understand why I even need to supply a local IP address and the documentation isn't very clear.</div><div><br></div><div>Thanks,</div><div><br></div><div>Rudolph</div><div><br></div></div></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Courier New'; border-spacing: 0px; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "> Here is the trace:</span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; border-spacing: 0px; "><div apple-content-edited="true"><font face="Courier New">(<0.84.0>) call diameter_tcp:start_link({monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:init({monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:i({monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) returned from diameter_tcp:i/1 -> {monitor,<0.114.0>,<0.115.0>}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.84.0>) returned from diameter_tcp:start_link/1 -> {ok,<0.116.0>}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:ssl([{ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {raddr,{10,249,20,174}},</font></div><div apple-content-edited="true"><font face="Courier New"> {rport,3868},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:ssl_opts([])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:ssl_opts/1 -> false</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:ssl/1 -> {false,</font></div><div apple-content-edited="true"><font face="Courier New"> [{ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {raddr,{10,249,20,174}},</font></div><div apple-content-edited="true"><font face="Courier New"> {rport,3868},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}]}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:i(connect,#Ref<0.0.0.643>,gen_tcp,<0.114.0>,false,[{ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {raddr,{10,249,20,174}},</font></div><div apple-content-edited="true"><font face="Courier New"> {rport,3868},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:i(connect,#Ref<0.0.0.643>,gen_tcp,<0.114.0>,[{ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {raddr,{10,249,20,174}},</font></div><div apple-content-edited="true"><font face="Courier New"> {rport,3868},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:get_addr([{ip,{10,151,0,166}}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:addr([{ip,{10,151,0,166}}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:addr/2 -> {10,151,0,166}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:get_addr/2 -> {10,151,0,166}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:get_addr([{raddr,{10,249,20,174}}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:addr([{raddr,{10,249,20,174}}],[])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:addr/2 -> {10,249,20,174}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:get_addr/2 -> {10,249,20,174}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:get_port([{rport,3868}])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:get_port/1 -> 3868</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:gen_opts({10,151,0,166},[{ssl,false},{reuseaddr,true}])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) returned from diameter_tcp:gen_opts/2 -> [binary,</font></div><div apple-content-edited="true"><font face="Courier New"> {packet,0},</font></div><div apple-content-edited="true"><font face="Courier New"> {active,once},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}]</font></div><div apple-content-edited="true"><font face="Courier New">(<0.82.0>) returned from diameter_tcp:start_link/1 -> {ok,<0.115.0>,</font></div><div apple-content-edited="true"><font face="Courier New"> [{10,151,0,166}]}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.115.0>) call diameter_tcp:connect(gen_tcp,{10,249,20,174},3868,[binary,</font></div><div apple-content-edited="true"><font face="Courier New"> {packet,0},</font></div><div apple-content-edited="true"><font face="Courier New"> {active,once},</font></div><div apple-content-edited="true"><font face="Courier New"> {ip,{10,151,0,166}},</font></div><div apple-content-edited="true"><font face="Courier New"> {ssl,false},</font></div><div apple-content-edited="true"><font face="Courier New"> {reuseaddr,true}])</font></div><div apple-content-edited="true"><font face="Courier New">(<0.114.0>) returned from diameter_tcp:start/3 -> {ok,<0.115.0>,</font></div><div apple-content-edited="true"><font face="Courier New"> [{10,151,0,166}]}</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:handle_info({'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,badarg},{monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:m({'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,badarg},{monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) returned from diameter_tcp:m/2 -> ok</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:x({'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,badarg})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) call diameter_tcp:terminate({shutdown,{'DOWN',#Ref<0.0.0.924>,process,<0.115.0>,badarg}},{monitor,<0.114.0>,<0.115.0>})</font></div><div apple-content-edited="true"><font face="Courier New">(<0.116.0>) returned from diameter_tcp:terminate/2 -> ok</font></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>