Amazon EC2 UDP connect failed
#1 Members - Reputation: 675
Posted 01 July 2012 - 07:07 PM
I have a simple test program:
http://pathogen.myftp.org/test.cpp
When I run it and try to telnet port 9930 it says
Could not open connection to host, on port 9930: Connect failed
Why?
Y̞͎̗̏ͨ̂͠o͎̩͓̠͗͘u̠̠̼̪̱̲̓̆͆̌̓̑ͦ
ͨ̌̀w̫̟̖̖̞ǐ̯̱̪͖l͂ͧ̈́͂́ͯ҉̹̘͔ͅl̜̲̘͍͖̈́̇̑͐͑͋
̝̖͐̎͊ͅb̠̟̭͉̘̭ͭ͜ͅe̙͇̝̖ͫ
#2 Members - Reputation: 423
Posted 01 July 2012 - 08:52 PM
#3 Moderators - Reputation: 7557
Posted 01 July 2012 - 11:28 PM
[Work - ArenaNet] [Epoch Language] [Scribblings] [Journal - peek into my shattered mind]
#6 Members - Reputation: 675
Posted 02 July 2012 - 05:29 PM
Yep, UDP port open.please test if you have UDP ports opened in your 'security group'
To test sockets in general, and UDP sockets specifically, use the "netcat" program.
This works:
nc -u
ec2-50-19-202-144.compute-1.amazonaws.com
9930But my game still doesn't... mmm.
Edited by polyfrag, 02 July 2012 - 05:30 PM.
Y̞͎̗̏ͨ̂͠o͎̩͓̠͗͘u̠̠̼̪̱̲̓̆͆̌̓̑ͦ
ͨ̌̀w̫̟̖̖̞ǐ̯̱̪͖l͂ͧ̈́͂́ͯ҉̹̘͔ͅl̜̲̘͍͖̈́̇̑͐͑͋
̝̖͐̎͊ͅb̠̟̭͉̘̭ͭ͜ͅe̙͇̝̖ͫ
#7 Members - Reputation: 675
Posted 02 July 2012 - 06:38 PM
http://www.tenouk.com/Winsock/Winsock2example9.html
test.exe -p UDP -n ec2-50-19-202-144.compute-1.amazonaws.com -e 9930
Edited by polyfrag, 02 July 2012 - 06:38 PM.
Y̞͎̗̏ͨ̂͠o͎̩͓̠͗͘u̠̠̼̪̱̲̓̆͆̌̓̑ͦ
ͨ̌̀w̫̟̖̖̞ǐ̯̱̪͖l͂ͧ̈́͂́ͯ҉̹̘͔ͅl̜̲̘͍͖̈́̇̑͐͑͋
̝̖͐̎͊ͅb̠̟̭͉̘̭ͭ͜ͅe̙͇̝̖ͫ
#8 Members - Reputation: 675
Posted 02 July 2012 - 06:49 PM
nc.exe -u ec2-50-19-202-144.compute-1.amazonaws.com 9930
http://joncraton.org...cat-for-windows
Edited by polyfrag, 02 July 2012 - 06:49 PM.
Y̞͎̗̏ͨ̂͠o͎̩͓̠͗͘u̠̠̼̪̱̲̓̆͆̌̓̑ͦ
ͨ̌̀w̫̟̖̖̞ǐ̯̱̪͖l͂ͧ̈́͂́ͯ҉̹̘͔ͅl̜̲̘͍͖̈́̇̑͐͑͋
̝̖͐̎͊ͅb̠̟̭͉̘̭ͭ͜ͅe̙͇̝̖ͫ
#9 Moderators - Reputation: 3292
Posted 02 July 2012 - 07:18 PM
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.






