<div dir="ltr"><div>Hi Iskren,</div><div><br></div><div>What do you mean by 'true IP address'? The real IP address of a device which sends a request?</div><div><br></div><div>$si and $sp reference to the source IP address and port of the message, "Via" header contains IP address and port of UA and it could be different from $si, for example if UA is behind NAT device. </div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div><br></div><div><span style="font-size:12.8px">Arsen Semionov</span></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Sep 29, 2017 at 3:05 PM, Iskren Hadzhinedev <span dir="ltr"><<a href="mailto:iskren.hadzhinedev@ikiji.com" target="_blank">iskren.hadzhinedev@ikiji.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_-1923609153095947793markdown-here-wrapper">
      <p style="margin:0px 0px 1.2em!important">Hi list,</p>
      <p style="margin:0px 0px 1.2em!important">How can I reliably
        get the sender’s IP address?<br>
        <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">$si</code>
        and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">$sp</code>
        are returning the server IP and Port.<br>
        I also tried using <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">$Ri</code>
        and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">$Rp</code>
        but it yields the same results.<br>
        Inspecting the packet shows the sender’s true IP:Port pair in
        the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Via:</code>
        header,<br>
        but the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">From:</code>
        and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">To:</code>
        contain the kamailio server’s public IP address.</p>
      <p style="margin:0px 0px 1.2em!important">Kind regards,</p>
      <div title="MDH:PGZvbnQgZmFjZT0iU291cmNlIFNhbnMgUHJvIj5IaSBsaXN0LDxicj48YnI+SG93IGNhbiBJIHJlbGlhYmx5IGdldCB0aGUgc2VuZGVyJ3MgSVAgYWRkcmVzcz88YnI+YCRzaWAgYW5kIGAkc3BgIGFy
ZSByZXR1cm5pbmcgdGhlIHNlcnZlciBJUCBhbmQgUG9ydC4gPGJyPkkgYWxzbyB0cmllZCB1c2lu
ZyBgJFJpYCBhbmQgYCRScGAgYnV0IGl0IHlpZWxkcyB0aGUgc2FtZSByZXN1bHRzLjxicj5JbnNw
ZWN0aW5nIHRoZSBwYWNrZXQgc2hvd3MgdGhlIHNlbmRlcidzIHRydWUgSVA6UG9ydCBwYWlyIGlu
IHRoZSBgVmlhOmAgaGVhZGVyLDxicj5idXQgdGhlIGBGcm9tOmAgYW5kIGBUbzpgIGNvbnRhaW4g
dGhlIGthbWFpbGlvIHNlcnZlcidzIHB1YmxpYyBJUCBhZGRyZXNzLjxicj48YnI+S2luZCByZWdh
        cmRzLDwvZm9udD4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div><span class="HOEnZb"><font color="#888888">
    </font></span></div><span class="HOEnZb"><font color="#888888">
    <div class="m_-1923609153095947793moz-signature m_-1923609153095947793markdown-here-signature">-- <br>
      
      <div class="m_-1923609153095947793moz-signature">
        
        
        <font face="Roboto Mono, UniSans, Calibri, sans-serif"> <i>Iskren
            Hadzhinedev</i><br>
        </font> </div>
    </div>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div></div>