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
netstatoutput indicates that the netcat listener is running and the port is open. To perform a local test, on your MBP, runtelnet 127.0.0.1 80and you should be able to connect like so –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 runtelnet 192.x.x.x 80where 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.