Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have access to a server via its local IP (I use putty) and I know the server has a static IP, how can I found its static(fix) IP? Its OS is CentOS.

share|improve this question

closed as too localized by mdpc, voretaq7 Nov 27 '12 at 21:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

curl – ceejayoz Nov 27 '12 at 18:30
also: curl curl – xofer Nov 27 '12 at 18:33
@xofer can be handy too. – ceejayoz Nov 27 '12 at 18:40
Look at the edge router/firewall configuration? Hit from the server in question? – voretaq7 Nov 27 '12 at 21:25
curl, curl – Janus Troelsen Feb 18 '15 at 18:20

Enter ifconfig at the command line.

share|improve this answer
Note that ifconfig will show the actual IP address assigned to the network interface, where the external sources listed in comments/answers will show the IP as it appears to, er, those external sources. This may be different in some situations, so check both. – xofer Nov 27 '12 at 18:35

For example:

links -dump | egrep "([0-9]+.){3}"

Of course you can use another site, but this is one of most popular.

share|improve this answer
I assumed that there is some kind of NAT, and public IP is not known on host itself – Tomasz Olszewski Nov 27 '12 at 18:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.