Sign in to follow this  
polyfrag

Amazon EC2 UDP connect failed

Recommended Posts

[color=#000000][font=verdana, arial, sans-serif][size=3]I have an Amazon EC2 (Amazon Linux) server with port 9930 open[/size][/font][/color][color=#000000][font=verdana, arial, sans-serif][size=3]
I have a simple test program:[/size][/font][/color][color=#000000][font=verdana, arial, sans-serif][size=3]
[url="http://pathogen.myftp.org/test.cpp"]http://pathogen.myftp.org/test.cpp[/url][/size][/font][/color][color=#000000][font=verdana, arial, sans-serif][size=3]
When I run it and try to telnet port 9930 it says[/size][/font][/color][color=#000000][font=verdana, arial, sans-serif][size=3]
Could not open connection to host, on port 9930: Connect failed[/size][/font][/color][color=#000000][font=verdana, arial, sans-serif][size=3]
Why?[/size][/font][/color]

Share this post


Link to post
Share on other sites
There has been a lot of power outages, and I know that amazon's cloud services have been severely affected.. [url="http://hardware.slashdot.org/story/12/06/30/162250/more-uptime-problems-for-amazon-cloud"]http://hardware.slashdot.org/story/12/06/30/162250/more-uptime-problems-for-amazon-cloud[/url]

Share this post


Link to post
Share on other sites
[quote name='FlyingDutchman' timestamp='1341259770' post='4955025']
please test if you have UDP ports opened in your 'security group'
[/quote]
Yep, UDP port open.


[quote name='hplus0603' timestamp='1341247478' post='4954957']
To test sockets in general, and UDP sockets specifically, use the "netcat" program.
[/quote]

This works:

nc -u [left]ec2-50-19-202-144.compute-1.amazonaws.com [/left]9930

But my game still doesn't... mmm. Edited by polyfrag

Share this post


Link to post
Share on other sites
Even this sample program doesn't work

[url="http://www.tenouk.com/Winsock/Winsock2example9.html"]http://www.tenouk.com/Winsock/Winsock2example9.html[/url]

test.exe -p UDP -n ec2-50-19-202-144.compute-1.amazonaws.com -e 9930 Edited by polyfrag

Share this post


Link to post
Share on other sites
[color=#000000][font=verdana, arial, sans-serif][size=3]Even netcat for windows doesn't work when I do the same command:[/size][/font][/color]

[i]nc.exe -u ec2-50-19-202-144.compute-1.amazonaws.com 9930[/i]

[url="http://joncraton.org/blog/46/netcat-for-windows"]http://joncraton.org...cat-for-windows[/url] Edited by polyfrag

Share this post


Link to post
Share on other sites
What does wireshark say on the machine you run "nc.exe" on?
Are you sure the Amazon provisioning is set up to allow UDP in on the public IP? If it works with netcat on the server, but not with netcat on your client, then that's the most likely problem.
Could also be local firewalls on the client, on your router, or on the server itself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this