janderkan Well-Known Member Licensed User Longtime User Apr 20, 2014 #1 Trying to interface to a system that sends log messages on port 514 using UDP. Is there any way to open UDP port 514 for listening. Regards Jan
Trying to interface to a system that sends log messages on port 514 using UDP. Is there any way to open UDP port 514 for listening. Regards Jan
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2014 #2 Android doesn't allow you to open port numbers smaller than 1024. Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Feb 21, 2015 #3 Does that mean you can't send from port 514? I need to send a message to a syslog server from an app @ 192.168.3.221 port 514. I could tell them to change the port I guess. Upvote 0
Does that mean you can't send from port 514? I need to send a message to a syslog server from an app @ 192.168.3.221 port 514. I could tell them to change the port I guess.
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2015 #4 No. It means that you cannot listen to a port number lower than 1024. Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Feb 28, 2015 #5 Ok, I tried sending packets to port 514 and it failed to compile or run. I will try again and post the error here. Upvote 0
Ok, I tried sending packets to port 514 and it failed to compile or run. I will try again and post the error here.
merlin2049er Well-Known Member Licensed User Longtime User Feb 28, 2015 #6 Ok, it basically says 'bind failed' (Permission denied). I guess it can't bind to that port unless the Android OS has been rooted. Upvote 0
Ok, it basically says 'bind failed' (Permission denied). I guess it can't bind to that port unless the Android OS has been rooted.
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2015 #7 Can you post the relevant code? There is no problem with connecting to ports lower than 1024 (remember that the most used port is port 80 which is the standard http port). Upvote 0
Can you post the relevant code? There is no problem with connecting to ports lower than 1024 (remember that the most used port is port 80 which is the standard http port).
merlin2049er Well-Known Member Licensed User Longtime User Mar 1, 2015 #8 Ok. I think the problem is, I was initalizing the port as 514 Instead of 0. Upvote 0