You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2014/09/05 12:58:28 UTC

[jira] [Updated] (DIRMINA-926) IoSession IP Error when Socket Server Communicate With Microcomputer In LAN and Internet.

     [ https://issues.apache.org/jira/browse/DIRMINA-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRMINA-926:
--------------------------------------
    Description: 
A server  in the LAN,Every Single Chip Microcomputer Connected by a switch.
My Socket Server Is Runing In The Server,I Can Communicate With Every Single Chip Microcomputer
Now,I Want My Socket Server  Can Receive Data From Internet(By GPRS). a adsl modem is connected to the 

switch. the Server Can  Connect to internet use PPPoE  dial,  At first, The Socket Server also 

can Communicate with every Single Chip Microcomputer(Include LAN and Internet). After a period of 

time,a Error is Appear,
Some Data Come from Internet But the IOsession is A LAN IP address.
Change a older Verion Mina(1.1.7),But the Same.
  My  mina  is 2.0.7.
  this is some code:
{code}
  public void messageReceived(IoSession session, Object message) throws Exception
  {
       byte[] revByteArr =(byte[])message ;
       GlobalObject.log.addNewRec(revByteArr , LogType.LOG_SYSTEM_INFO, 0, -1,        

"address:"+session.getRemoteAddress());   
  }
{code}

 
113484 INFO  2012-12-11 08:38:43 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 1c 06 

00 04 00 0b 01 03 00 0d 00 00 00 00 1d 08 00 01 00 00 00 00 00 07 00 00 02 00 00
117531 INFO  2012-12-11 08:38:47 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 20 08 

00 04 00 84 01 
131500 INFO  2012-12-11 08:39:01 LowerComputerCommRec  address:/192.168.1.226:9000   : 68 0e 0a 

00 04 00 64 01 0a 00 0d 00 00 00 00 14 

 Is it a MINA bug??

  was:
A server  in the LAN,Every Single Chip Microcomputer Connected by a switch.
My Socket Server Is Runing In The Server,I Can Communicate With Every Single Chip Microcomputer
Now,I Want My Socket Server  Can Receive Data From Internet(By GPRS). a adsl modem is connected to the 

switch. the Server Can  Connect to internet use PPPoE  dial,  At first, The Socket Server also 

can Communicate with every Single Chip Microcomputer(Include LAN and Internet). After a period of 

time,a Error is Appear,
Some Data Come from Internet But the IOsession is A LAN IP address.
Change a older Verion Mina(1.1.7),But the Same.
  My  mina  is 2.0.7.
  this is some code:
  public void messageReceived(IoSession session, Object message) throws Exception
  {
       byte[] revByteArr =(byte[])message ;
       GlobalObject.log.addNewRec(revByteArr , LogType.LOG_SYSTEM_INFO, 0, -1,        

"address:"+session.getRemoteAddress());   
  }


 
113484 INFO  2012-12-11 08:38:43 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 1c 06 

00 04 00 0b 01 03 00 0d 00 00 00 00 1d 08 00 01 00 00 00 00 00 07 00 00 02 00 00
117531 INFO  2012-12-11 08:38:47 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 20 08 

00 04 00 84 01 
131500 INFO  2012-12-11 08:39:01 LowerComputerCommRec  address:/192.168.1.226:9000   : 68 0e 0a 

00 04 00 64 01 0a 00 0d 00 00 00 00 14 

 Is it a MINA bug??


> IoSession IP Error  when Socket Server Communicate With Microcomputer In LAN and Internet.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-926
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-926
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.7
>         Environment: windows XP ,Eclipse  1.4.2
>            Reporter: zlh
>             Fix For: 2.0.8
>
>
> A server  in the LAN,Every Single Chip Microcomputer Connected by a switch.
> My Socket Server Is Runing In The Server,I Can Communicate With Every Single Chip Microcomputer
> Now,I Want My Socket Server  Can Receive Data From Internet(By GPRS). a adsl modem is connected to the 
> switch. the Server Can  Connect to internet use PPPoE  dial,  At first, The Socket Server also 
> can Communicate with every Single Chip Microcomputer(Include LAN and Internet). After a period of 
> time,a Error is Appear,
> Some Data Come from Internet But the IOsession is A LAN IP address.
> Change a older Verion Mina(1.1.7),But the Same.
>   My  mina  is 2.0.7.
>   this is some code:
> {code}
>   public void messageReceived(IoSession session, Object message) throws Exception
>   {
>        byte[] revByteArr =(byte[])message ;
>        GlobalObject.log.addNewRec(revByteArr , LogType.LOG_SYSTEM_INFO, 0, -1,        
> "address:"+session.getRemoteAddress());   
>   }
> {code}
>  
> 113484 INFO  2012-12-11 08:38:43 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 1c 06 
> 00 04 00 0b 01 03 00 0d 00 00 00 00 1d 08 00 01 00 00 00 00 00 07 00 00 02 00 00
> 117531 INFO  2012-12-11 08:38:47 LowerComputerCommRec  address:/211.140.5.116:50937  : 68 20 08 
> 00 04 00 84 01 
> 131500 INFO  2012-12-11 08:39:01 LowerComputerCommRec  address:/192.168.1.226:9000   : 68 0e 0a 
> 00 04 00 64 01 0a 00 0d 00 00 00 00 14 
>  Is it a MINA bug??



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)