how to know ip address of server

Issues related to software problems.
Post Reply
yolayola
Posts: 4
Joined: 2014/04/12 16:19:00

how to know ip address of server

Post by yolayola » 2014/04/12 16:31:14

i signed up for free vps on vps.me adn loged in in ssh using ssh root@31.220.49.97 -p 2206 and have hostname adversal2.tk i dont understand what is hostname and i also dont know how to get ip address of server please help

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: how to know ip address of server

Post by avij » 2014/04/12 17:26:09

As far as I can see, their free offering does not include an IPv4 address, only an IPv6 address. They have most probably assigned you some private IPv4 address (like 10.x.x.x, 172.x.x.x or 192.168.x.x), but you can not use that IP address in DNS. To determine your IP addresses, run "/sbin/ip addr show" and search for inet and inet6. As for your domain name, what is your exact problem with that?

And by the way, I think you are running Debian or Ubuntu on your VPS. This is the CentOS support forum, so you are in the wrong place for your questions.

yolayola
Posts: 4
Joined: 2014/04/12 16:19:00

Re: how to know ip address of server

Post by yolayola » 2014/04/14 09:51:42

IP address IPV4 = 10.223.1.157
IP address IPV6 = 2a02:4780:1:1::1:12d2

when i open up ipv4 address in browser nothing opens up it says unale to connect

i installed webmin but i am unable to access through 10.223.1.157:10000
and also i am unable to access the ip alone

[edit/avij: copied the last paragraph from the other topic]

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: how to know ip address of server

Post by avij » 2014/04/14 11:57:14

That is correct. You can't access 10.x.x.x addresses because they are private addresses and can't be accessed from outside.

You need to either upgrade to a paid VPS which comes with a public IPv4 address, or access your server over IPv6. Only about 3% of Internet users have IPv6, so if you set up a web server on that VPS and rely on people having IPv6, you will severely limit your audience. It is possible to set up an IPv6-only webserver and configure your DNS accordingly, but I think you would really want to have IPv4 as well.

I'm among the lucky ones who have IPv6, so I can see the CentOS test page when I access http://[2a02:4780:1:1::1:12d2]/

If you have further questions about their offerings, I'd suggest using their forum. They know their limitations better than we do.

yolayola
Posts: 4
Joined: 2014/04/12 16:19:00

Re: how to know ip address of server

Post by yolayola » 2014/04/15 11:45:42

ipv4 ip address and public ip is 10.223.1.157 also to access webmin just go to 10.223.1.157:10000 but i think it is hidden but to make it public and also when i use wget http://www.example.com/file.exe the file is 4 gb and i dont have time for server to accept file and i cant be connected to ssh for many hour is there any way by which the command keep grabing file to the server even when i have disconnect ssh

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: how to know ip address of server

Post by avij » 2014/04/15 13:17:38

For the latter part of your question, have a look at screen. The procedure is:
  • yum install screen
  • screen
  • wget someverylargefile
  • hit CTRL-a, then d (for "detach")
  • disconnect ssh
  • log in again
  • screen -dr
  • notice that the program you started previously is still there

Post Reply

Return to “CentOS 5 - Software Support”