When I perform an nmap scan on my localhost why doesn't the port number 80 show up as open even though my browser is open, ssh and telnet ports show up though. If there is a rule or a firewall blocking it then how do I temporarily suspend it. I use Ubuntu 14.10.
Port 80 should only appear in a scan if you have a web server running on your local machine, listening on port 80. Port 80 is the server port, not the client port.
Firstly you can use "netstat -nltp" to check whether you have listened on port 80.
Then type command "nmap -P0 -p80 localhost", port number 80 will be showed as open status.
Related
I need to open port#42474 on my Windows 10 system for penetration testing purposes.
I added it to the inbound list of my Windows Defender Firewall (both TCP and UDP protocol), and it is enabled.
However, whenever I am trying to ping this port on my machine using telnet it is throwing an error as
Connecting To localhost...Could not open connection to the host, on port 42474: Connect failed
I am able to use telnet to ping other sites such as google.com. But not this port on my machine. Below is the command I am running to test the port and the error:
Port
Telnet error
telnet localhost 42474
Do I need to do anything else to open port#42474?
How do I verify if this port is available for use?
TCP ports are bi-directional, so check these tips:
Verify your service on this port is running: netstat -a
Be sure your firewall isn't blocking (try to deactivate it: if it works well, your rule isn't correct)
Search for your service log: maybe,
it receive information, but it's not able to reply. I recommend you to use PuTTY or Kitty (which is my favorite, because it's portable without registry keys modification), and try to connect on this port.
If you need a tool that able to listen on the port, see this post: Utility to open TCP port to listen state and netcat.
You can use the Python programming language. More specifically, the socket library:
import socket
hote = "localhost"
port = 4444
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.connect((hote, port))
print "Connection on {}".format(port)
socket.send(u"Hey my name is Abdx!")
print "Close"
socket.close()
I have IIS 7.5 installed on my computer.
I have one site configured on it.
It has binding on port 80 with IP all unassigned.
I want to reach that site from a remote computer i.e. not inside the LAN.
I also configured port forwarding to my LAN IP but I still can't reach it.
Is there something else I need to do in order to achieve it?
telnet from computer to port 80 succeed but from a remote it doesn't succeed.
These are the configurations in my router:
10.0.0.2
External Port Start
1
External Port End
65000
Internal Port Start
80
Internal Port End
80
Ok - it was a problem with my router configurations:
I set port 80 for both external and internal and no I reached my computer
i am on a Windows machine and need to connect to an application on a Unix box under a certain port.
i've been told it's open but i'm still having difficulties getting in, is there anything in can do on my end to debug this? how can i check if the port of the Unix server is really open from my IP address?
You can use Telnet.
E.g. telnet example.com 80 to check if the server at example.com accepts connections on port 80.
I am not able to host my website on my personal server. I am using IIS7. I have already forwarded the port number 80 on my router and configured my firewall to allow incoming connections on port 80. The strange thing is that I am able to access SQL Server databse from outside which is running on port number 1433 but not my website. Please help.
I finally solved my problem.....i was having an issue with port forwarding thing...Earlier i opened up port number 1433 first then port 80 second the port 27015 third...in this order...now i channged the order ie 80 first then 1433 then 27015....strange but it worked...!!
I want to send application logs from mobile device via tcp-socket. I put listener with nc -l -k 80 command in Mac's terminal. But port 80 is closed on Mac. How can I open port 80?
And other question about my IP address:
With web check tool, I receive that my IP is : 89.xxx.xx.196
I think that it should began from 196 and not from 89. Why it is opposite and how can I receive the none-oposite my IP?
Based on your netstat output indicates that the netcat listener is running and the port is open. To perform a local test, on your MBP, run telnet 127.0.0.1 80 and you should be able to connect like so -
$ telnet 127.0.0.1 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Your mobile device (I'm presuming) is on the same wireless) as the MBP. Therefore, as alluded to by Michael Graczyk, you need to connect to the MBP IP address on the internal network (ifconfig en1), which is the 192.x.x.x IP address. If you can run telnet 192.x.x.x 80 where 192.x.x.x is the IP of the MAC and get a connected prompt, then all is ok. If you get nothing and the simply the CLI is returned, then there's something in between blocking or dropping the port 80 connection attempt. It is possible that your WAN router needs an ACL rule on it to allow the connection.
If the mobile device is on an external network, you'll need to connect to 89.x.x.x (on your WAN router) and enable port forwarding (most likely) on port 80 on the router.