Midrange News for the IBM i Community

Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Add Entry to IBM i (AS/400 iSeries) HOSTS File
has no ratings.
Published: 12 Sep 2011
Revised: 28 Apr 2016 - 1152 days ago
Last viewed on: 24 Jun 2019 (24946 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Add TCP/IP Host Table Entry (ADDTCPHTE) Published by: Bob Cozzi on 12 Sep 2011 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend


(Sign in to Post a Comment)
Posted by: Viking
Premium member *
Comment on: Add Entry to IBM i (AS/400 iSeries) HOSTS File
Posted: 3 years 2 months 4 days 17 hours 13 minutes ago

Note:  If you are trying to add a host name to the host table using the ADDTCPHTE command and you already have previously existing host entries for that TCPIP address, use CHGTCPHTE command to add additional host names to the existing entry.

Posted by: clbirk
Premium member *
Comment on: Add Entry to IBM i (AS/400 iSeries) HOSTS File
Posted: 3 years 1 months 25 days 23 hours 36 minutes ago

far easier to use the graphical inav which you get under network tcp/ip configurations. It is available both in the windows based and the navigator for i (port 2001) version.


In addition to "internal devices", lets say you have to communicate with a new website that the public dns has not yet rolled to it, that is say you need to do a webservice with  www.xyz.com and currently that is at but the one you need to test is at you can set up an entry in the hosts file that www.xyz.com points to and that is where the i will go look for it.