DMacATTACK wrote:Although I am just starting with Android Development, I have done quite a bit of work with socket programming, so I'll try to help.
There are a few steps you could follow to remedy your problem:
1) Make sure your router is set up to do port forwarding (log into your router, and configure port 4444 for UDP).
2) Try 127.0.0.1 on your emulator client
3) Change your server to accept any IP/Port
4) If its possible use TCP
If all else fails, its probably your code, and like TuxBobble said, no one can help without posted code.
TuxBobble wrote:DMacATTACK, well said with your suggestions. However, I'd like to point out that if you're using 127.0.0.1 or "localhost" as your address, you shouldn't need to worry about #1. When looking for "localhost" your computer generally does not look outward toward routers. Unless I'm mistaken, the router shouldn't be an issue if using localhost. Obviously if you want to connect from one computer to another,
however, the router issue can and likely will come up.
TuxBobble wrote:DMac, since you said you have good experience with Socket programming, I'd like to ask--do you have any recommendations for learning Socket programming? I'm refreshing myself on Java these days but I've only done some very minimal Socket work, all in C.
Also, you might not have any answers on this one since you've just begun Android development, but are you aware of any distinct differences between the Java and Android imported Socket classes? I'm assuming I could use either one when programming for Android, but I haven't quite figured out the Android libraries yet, haha.
Anyway, to the OP, please post some code so we can discuss/comment about it--I'd love to help if possible, but can't do much without seeing what you've tried.
Users browsing this forum: Yahoo [Bot] and 4 guests