LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2010, 09:10 PM   #1
MT_Keg
LQ Newbie
 
Registered: Aug 2009
Location: TN
Distribution: Debian/Fedora/OS X
Posts: 25

Rep: Reputation: 15
How to create a host name?


I have installed NXServer from NOMachine and I want to connect to my home computer from work. Because the router at my house is dynamic as is the wireless to this computer how do i go about setting up a host name for one of these computers? I am running the latest debian. I also intend to use this computer eventually as a file and web server so this would be extremely benificial! Thanks

MT
 
Old 01-24-2010, 09:36 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The installs should already have a host name

echo $HOSTNAME

If you want to be able to access a host by its name rather than an IP, then you need to either add the hosts to /etc/hosts or add a DNS server to your network.
 
Old 01-24-2010, 09:43 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Broadly speaking:

First you need to connect from work to the router. If you don't have a fixed IP address from your internet service provider, you could make use of a dynamic DNS service such as http://www.dyndns.com/. This is fine for just connecting to your home desktop, but it is a messy way to run a webserver.

Second, you need to move traffic from the router to the PC. There are several ways to do this. One is to change your home computer to have a fixed IP address, and change the router settings to forward traffic on relevant ports to a particular home computer (relevant ports would be the ones that you are using for NXServer, etc). Be aware that this makes the home computer directly visible from the internet, so be conservative about which services you run on it and which ports you open.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
how to create bash script to start esx host service? jhanevd Programming 3 03-07-2009 08:35 AM
LXer: How to Create an adhoc host with Ubuntu LXer Syndicated Linux News 0 03-02-2009 08:50 AM
Create your own Ubuntu APT Repository and Host it for Free flouran Ubuntu 1 08-22-2008 04:00 PM
Is it possible to create a remote log host on a free shell account? testpie Linux - Server 3 05-08-2008 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration