Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to listen on socket port 80?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Xin  
View profile  
 More options Jun 4 2010, 1:32 am
From: Alex Xin <xinxi...@gmail.com>
Date: Fri, 4 Jun 2010 13:32:41 +0800
Local: Fri, Jun 4 2010 1:32 am
Subject: How to listen on socket port 80?

Hi, guys

I'm new to Android development, now I'm working on a simple HTTP server
project. I  try to use ServerSocket to listen on port 80 but I failed. There
will have an exception if I did this. I have already set INTERNET premission
in manifest.

I found that everything is Okay if I use port 8080, that's strange for me,
why I cannot use port 80? I don't want my users to use another port to
connect  my server.

Thanks very much

Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mah  
View profile  
 More options Jun 10 2010, 11:28 am
From: mah <m...@heilpern.com>
Date: Thu, 10 Jun 2010 08:28:35 -0700 (PDT)
Local: Thurs, Jun 10 2010 11:28 am
Subject: Re: How to listen on socket port 80?
Socket ports below 1024 require the ROOT user id in order to establish
a server. If you're building an application intended to go on random
devices, you're not going to have any success opening a server on port
80. This is not an Android constraint, it's the way sockets have been
in *nix for a very long time (if not always). It's a security issue to
prevent malicious applications from spoofing a service on a machine
that doesn't already provide the service.

On Jun 4, 1:32 am, Alex Xin <xinxi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »