External IP Address of Linux Server

Hi,

I am trying to find the external IP address of a server "XXX".
I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45
Later, i have executed "curl http://whatismyip.org". This time i got a different number 611.34.63.22

Out of these two numbers, what number should i share with outside companies who wish to receive file from us through FTP ( outside company needs to give permission to our server to connect to theirs ).
What is the difference between these two numbers?

Please help me out.

It can be neither of those addresses. It depends on network topology and configuration. Your (server) administrator should give You this answer, eventually Your ISP.
And I think, there's sth wrong with the second IP: 611.x.x.x :slight_smile: Maybe a typo...
Is the XXX server behind any NAT? Does it have direct internet access?