I had a server in a hosting company and I took it home.
I need to connect him to a local network (not wifi) and access to the server from another computer in the network via browser, like I did it when it was in the hosting company.
I don’t have any knowledge in linux, I just know how to type in the command line 🙂
I thinks all the IP configuration of the server is one big mess, because it passed from more then one hosting company to another…
I tried a lot of tutorials that I found in the web, but nothing works – mainly because I don’t know how to check if I did something wrong.
I just need to know how to connect to local network ( D-Link router)
and then access the server from another computer browser.
the server os is: CentOS release 4.8 (Final)
In short, you need:
- The ability to use the server to access the internet (e.g. if you connect a monitor and keyboard to it)
- The ability, on the server, to access the server application. E.g. browsing to
http://localhostand seeing a web server
- You want the server to be in the same IP subnet as the other computers on the network. This should be easy if it’s a home router, and all IP’s will start with
- You want to go to
http://IP-Of-Server(in the case of a web server) from the other computer.
If your main problem is #1, you want to loop up how to re-enable DHCP on your machine to get an Ip address
If your main problem is #2, then you may need to restart the server process
If your main problem is #4, then you might have a firewall issue.
Hope that helps.
$ vi /etc/sysconfig/network NETWORKING=yes $ vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes $ /etc/init.d/network restart $ ifconfig eth0 $ route -n $ ping 10.0.0.138 $ vi /etc/httpd/conf/httpd.conf Allow from all $ service httpd restart
use below to setup ip address
without knowing what Os is in the server it will be hard to give you exact commands.