Skip to content

Instantly share code, notes, and snippets.

@ybr
Created June 5, 2015 09:02
Show Gist options
  • Save ybr/a8daa4a6f92613559e07 to your computer and use it in GitHub Desktop.
Save ybr/a8daa4a6f92613559e07 to your computer and use it in GitHub Desktop.
Check client/server connectivity
Stop the service listening on the specific port. Make a server listen on the specified port number by running
```bash
netcat -luv port
```
From a remote host run
```bash
echo "test" | netcat -vu ip port
```
If you the text 'test' gets displayed on the server, then all is good. Otherwise check your security group and local host firewall rules. You can also use tcpdump for troubleshooting
From: http://serverfault.com/questions/678607/udp-tcp-ports-on-aws-ec2-public-ip-blocked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment