Telnet is not happening on port number 8080


 
Thread Tools Search this Thread
Operating Systems AIX Telnet is not happening on port number 8080
# 1  
Old 06-11-2015
Telnet is not happening on port number 8080

Dear Experts,

I am trying to open 8080 port on my Aix 7.1 server. I made an entry in /etc/services for the port. and refreshed the inetd service. But when I try to telnet localhost 8080, telnet is not happening. connection refused error is coming.

I can able to telnet localhost 23 its working fine, but its not working for 8080.

Can someone please help me on this?

Regards,
Rockie
# 2  
Old 06-11-2015
Did you update /etc/inetd.conf?
# 3  
Old 06-11-2015
Thanks RudiC for your quick reply.

in /etc/services, we have entry for the service

xxxxx 8080/udp #

but in /etc/inetd.conf, there is entry for only telnet not for the service, is it necessary put entry in /etc/inetd.conf for the xxxxx services?
# 4  
Old 06-11-2015
Quote:
Originally Posted by aix.rockie
in /etc/services, we have entry for the service
I suppose there are a few misconceptions to clear:

The file /etc/services is not actively doing anything. It is a mere directory of ports, like i.e. /etc/hosts is for IP addresses/host names. Nobody would expect a host to get a "hostname configured" just because it was entered in /etc/hosts and the same is true for /etc/services.

In fact it is like this: a "port" is a (layer 4 of the OSI reference model) addressing device like the IP address is (the layer 3 addressing device). Behind every port (0-65535) can "wait" a process - or not. Picture an IP-host to be like a large house (the IP address) with lots of apartments (ports). When you ring the bell at a certain apartment (connect to a certain port) maybe someone is at home and answers (there is some process taking packets coming in at that port) or nobody is at home and then nobody answers your ringing.

Common protocols (telnet, ftp, ssh, http, ....) have a certain port where they "usually" answer. This is done by configuring the respective programs (usually "daemons", because they work in background) to bind to the respective port. In principle you can configure any service to use any port, but there are some defaults.

When you "telnet" a host and it answers the following happens: at the start of the IP stack some process (the telnetd daemon) is started at the host which binds to port 23 (per default - maybe configured to use some other port) and then listens to incoming connections at that port. When you now enter "telnet hostname" at some remote host you start a client program which contacts "hostname" at port 23 and from there the telnetd picks it up, establishes a connection (so-called "virtual channel") and at some point this is dissolved again, ending the connection.

The "connection refused" error you get is just an indication that your telnetd does not listen to port 8080. Btw., you usually have TCP, not UDP, as transport protocol for telnet.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 06-11-2015
Quote:
Originally Posted by aix.rockie
.
.
.
is it necessary put entry in /etc/inetd.conf for the xxxxx services?
Yes, it is. Please c.f man inetd.
This User Gave Thanks to RudiC For This Post:
# 6  
Old 06-11-2015
Thanks a lot Bakunin and RudiC for the gentle explanation. Let me check and update.. thanks..

---------- Post updated at 05:15 AM ---------- Previous update was at 02:53 AM ----------

corrected udp as tcp, still its not working, any help pls
# 7  
Old 06-11-2015
WHAT did you correct?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

2. Red Hat

Unable to Open port 8080

Hi Experts, I am receiving below error while trying to connect port 8080. Could not open connection to the host, on port 8080 : connection refused. iptables configuration /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of... (1 Reply)
Discussion started by: sai_2507
1 Replies

3. UNIX for Dummies Questions & Answers

telnet echoing 'trying ip' but no port number

Hi, Well this is probably a silly one that I should know...but I don't ! I'm telnetting to various ports from a shell script and the telnet is echoing back that it's 'trying xxx.xx.xx.xx...' but not the port number it's trying! Any help much appreciated Thanks (1 Reply)
Discussion started by: Grueben
1 Replies

4. IP Networking

telnet for port 5433 is not working while it works for port 22

Hi, I am trying to set up a dev environment and I have Ubuntu server (10.16.1.92) and a CentOS VM (10.16.3.235) on this. On the CentOS I have a program running on port 5433. Now my problem is that I am unable to telnet this port from another Windows server whereas I can telnet port 22 from... (5 Replies)
Discussion started by: rishav
5 Replies

5. AIX

Monitoring the network activity happening in a port in AIX 5.3

Hi All, I would like to monitor the volume of Data that is transferred through a single port in AIX. I have nmon installed in my machine. What is the best possible solution for this problem. Thanks in Advance. (3 Replies)
Discussion started by: bravo13
3 Replies

6. Solaris

disabled telnet now need port 23 or port 22

we disabled telnet on solaris 9 via previous a thread. We use CMS (call management system) supervisor which used port 23 (telnet). We cannot use telnet via local directive and it was shut down as stated when we shut down telnet in the inetd file. I cannot now log into the CMS box since port 23 is... (3 Replies)
Discussion started by: panzerkw
3 Replies

7. AIX

Ping/Telnet is not happening

Hi All, We are not able to ping to a AIX box...Network is ok..when we give ping from that AIX box..it is giving 0821-067 ping: The socket creation call failed.there is no enough buffer space for the requested socket operation. refresh -s inetd is also giving socket error. Please help to... (1 Reply)
Discussion started by: b_manu78
1 Replies

8. AIX

Ping is happening, telnet is not happening

HI all, Ping is happening to a AIX box...but telnet is not happening... AIX box doesn't have any conslole... Please help how to resolve it. Thanks in advance .. Manu (2 Replies)
Discussion started by: b_manu78
2 Replies

9. UNIX for Dummies Questions & Answers

enabling port 8080

hey everyone, i have just finished configuring apache 2.0 with the php and pgsql modules installed on it.. httpd.conf is configured and everything is running right after a lengthy bit of reading and struggling with the system.. the only problem left is how do i enable the port that i would access... (3 Replies)
Discussion started by: moxxx68
3 Replies

10. IP Networking

Resolving port 8080 in DNS

Hi I have my DNS servers (BIND 8) running on two Solaris 8 boxes. I need to be able to resolve an address blah.xxx.net to an IP address followed by :8080 - (for Tomcat). I tried doing this in my zone file but it failed. Can someone give me a pointer on where this configuration should be done?... (1 Reply)
Discussion started by: korfnz
1 Replies
Login or Register to Ask a Question