When the check box is unchecked, it should not listen
for other hosts.
Under Windows, using the cmd netstat -ano
will show that MrPostman (pid 2240 in this case) is
listening on all interfaces instead of just 127.0.0.1
(localhost):
TCP 0.0.0.0:11110 0.0.0.0:0
LISTENING 2240
TCP 0.0.0.0:25250 0.0.0.0:0
LISTENING 2240
I would sugest the following (or similar) change to
PopServer() _AND_ SmtpServer():
Replace "listenSocket = new ServerSocket(port);"
with:
if(mpn.getUserprefs().getBoolean("AllowOtherHosts",
false))
{
// Allow anybody to connect, so listen on any/all
local addresses
listenSocket = new ServerSocket(port);
}
else
{
// Nobody from the outside is allowed to connect.
Only listen on localhost.
listenSocket = new ServerSocket(port, 50 /*default
value*/, InetAddress.GetLocalHost());
}
--
jpa
Logged In: YES
user_id=1009183
Change also MrPostmanServer.run(){}
"listenSocket = new ServerSocket(port);"
so that it listens mostly locally.
Logged In: YES
user_id=1020004
MrPostman will check the address of the client trying to
connect. Thus I currently see no necessity for the change.
Moved to Feature Requests.
Logged In: YES
user_id=1009183
Attached picture of Windows complaining about MrPostman
listening on non-loopback IP address.
(I'm done with a patch for this, and will be posting it in
the next couple of minutes).
Windows XP SP2 firewall complaining about MrPostman
Logged In: YES
user_id=1009183
The patch for this feature is uploaded:
https://sourceforge.net/tracker/index.php?func=detail&aid=1062664&group_id=68124&atid=520161
I used todays (11:37 GMT-8) cvs.
The patch was built and tested.
Logged In: YES
user_id=1020004
Should work now in MrPostman 1.1 RC1. Patch was applied
(slightly modified).