Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to systems administration and have a new server running a website with http (at port 80), https (at port 443) and ssh (at port 22).

I did an nmap port scan using my personal laptop and other than these 3 ports, port 1111 was open too. This is the output:

1111/tcp open  tcpwrapped
  • Should i be concerned about this?
  • How can i determine the purpose of this port?
  • How do i close it if i need to?

Thanks guys! Nikunj

EDIT: I am on Ubuntu 11.04

EDIT2 : I did a sudo netstat -lntp | grep -F 1111
Output: tcp 0 0* LISTEN 21596/monit
Looks like monit is a montoring tool in ubuntu. Is this ok? What should be my next steps?

[SOLVED]: I finally ended on contacting my hosting service provider, rackspace, and they were using this service to monitor the systems health using a tool called monit.
As mentioned by @Diogo, was an amazing guide for a sys admin noob like me.

Thanks superuser! This was great.

share|improve this question
If nmap reports "tcpwrapped," you might also take a look in /etc/hosts.allow or /etc/hosts.deny to see what service is actually being wrapped. – CodeGnome Jul 19 '12 at 14:49
I am on Linux. Ill update the post to add this. – nknj Jul 19 '12 at 14:53
@CodeGnome I checked these files and they are both empty (everything in them is commented out information on how to use this file). – nknj Jul 19 '12 at 14:56
Monit home page. – CodeGnome Jul 19 '12 at 15:13
I am contacting my hosting service to check if they did something to enable this. – nknj Jul 19 '12 at 15:18
up vote 5 down vote accepted

According to this reference:

Because protocol TCP port 1111 was flagged as a virus (colored red) does not mean that a virus is using port 1111, but that a Trojan or Virus has used this port in the past to communicate.

So, it could be a virus/trojan.

I would reccomend you to use Net Activity View to see what is the process/service that keep this port on listening state:

enter image description here

After this, google the process name to see if there are any virus related to this process and to this port.

Finally, if you think it is a virus, just follow the instructions guided here.

share|improve this answer
I am on a linux machine. Is a sudo netstat -lntp | fgrep 1111 equivalent of this? – nknj Jul 19 '12 at 14:52
@Nikunj Edited to Linux TCP View program. Probably netstat can't list prot related to processes. – Diogo Jul 19 '12 at 15:00
Thanks a lot @Diogo. Is there a CLI thing that helps me do this? I do not have a ubuntu gui install on my server – nknj Jul 19 '12 at 15:03
looks like iftop and iptraf are alternatives on the cmd line. – nknj Jul 19 '12 at 15:09
Try this guide: – Diogo Jul 19 '12 at 15:13

IANA's (Internet Assigned Numbers Authority) port description is:

1111 tcp,udp lmsocialserver LM Social Server

But its also known to be used by

1111    tcp trojan  Daodan, Ultors Trojan   Trojans
1111    udp trojan  Daodan  Trojans
1111    tcp threat  W32.Suclove Bekkoame
1111    tcp,udp threat  AIMVision   Bekkoame

Trojans that use this port:
    Backdoor.AIMvision - remote access trojan, 10.2002. Affects all current Windows versions.
    Backdoor.Ultor - remote access trojan, 06.2002. Affects Windows, listens on port 1111 or 1234.
    Backdoor.Daodan - VB6 remote access trojan, 07.2000. Affects Windows.
    W32.Suclove.A@mm (09.26.2005) - a mass-mailing worm with backdoor capabilities that spreads through MS Outlook and MIRC. Opens a backdoor and listens for remote commands on port 1111/tcp.


share|improve this answer
Thanks a ton for this information. – nknj Jul 19 '12 at 14:53

This page indicates that TCP port 1111 is used by an app called LikeMinds Socialserver, but it also says it's known to be used by several malware apps. Perhaps a full malware scan of your disk is in order.

share|improve this answer
Thanks ill check on this. – nknj Jul 19 '12 at 14:52

Check /etc/services

Generally, you can find standard service ports listed in /etc/services. However, on my system:

fgrep 1111 /etc/services

returns no information, so it's probably not a standard service.

Check netstat

You can see what programs are using a given port with netstat.

sudo netstat -lntp | fgrep 1111

You can then use that information to determine if it's a necessary system service for your environment.

Stopping Unnecessary Processes

Stopping system processes is somewhat platform-specific, but many Linux systems support a sudo service ssh stop or similar command, or you can call the startup script directly with sudo /etc/init.d/<service> stop. If it's not a system service, you can just call sudo kill <pid> to send SIGTERM to the process.

Note that stopping a service doesn't prevent it from running again, so you may also need to adjust your runlevel startup scripts in whatever way is appropriate for your specific platform.

share|improve this answer
Thanks for this. fgrep 1111 /etc/service gave no info. sudo netstat -lntp | fgrep 1111 however gave this output: tcp 0 0* LISTEN 21596/monit – nknj Jul 19 '12 at 14:47
Use grep -F instead of fgrep. Quote from man grep: Direct invocation […] is deprecated, but is provided to allow historical applications that rely on them to run unmodified. – Marco Jul 19 '12 at 15:01
Thanks @Marco. This still gives the same output. Any idea whats going on? Is this a virus? – nknj Jul 19 '12 at 15:05

From aptitude show monit:

Description: utility for monitoring and managing daemons or similar programs
monit is a utility for monitoring and managing daemons or similar programs running on a 
Unix system. It will start specified
programs if they are not running and restart programs not responding.

If you don't plan to use it you should uninstall it or at least stop it and prevent automatic start with

/etc/init.d/monit stop
update-rc.d -f monit remove

Or you can learn to use it and configure it to your needs.

share|improve this answer

You can use lsof -i :1111 to find the process connected to port 1111.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .