How to run pycrate corenet












0















I want to run the core simulator of https://github.com/P1sec/pycrate.
And I want to run SERVER_ENB only, so configure like below and create a server.



from pycrate_corenet import Server

Server.CorenetServer.SERVER_HNB = {}
Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

epc = Server.CorenetServer()


But, I got following error.



$ sudo /usr/local/anaconda3/bin/python EPC.py 
CorenetServer: loading all ASN.1 and NAS modules, be patient...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/Server.py", line 345, in start
self.GTPUd = self.__class__.GTPUd()
File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/ServerGTPU.py", line 466, in __init__
sk.bind((gtpip, self.GTP_PORT))
OSError: [Errno 99] Cannot assign requested address


How can I run the server?
Could you give a usage for this pycrate corenet?










share|improve this question



























    0















    I want to run the core simulator of https://github.com/P1sec/pycrate.
    And I want to run SERVER_ENB only, so configure like below and create a server.



    from pycrate_corenet import Server

    Server.CorenetServer.SERVER_HNB = {}
    Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
    Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

    epc = Server.CorenetServer()


    But, I got following error.



    $ sudo /usr/local/anaconda3/bin/python EPC.py 
    CorenetServer: loading all ASN.1 and NAS modules, be patient...
    Exception in thread Thread-1:
    Traceback (most recent call last):
    File "/usr/local/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    File "/usr/local/anaconda3/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/Server.py", line 345, in start
    self.GTPUd = self.__class__.GTPUd()
    File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/ServerGTPU.py", line 466, in __init__
    sk.bind((gtpip, self.GTP_PORT))
    OSError: [Errno 99] Cannot assign requested address


    How can I run the server?
    Could you give a usage for this pycrate corenet?










    share|improve this question

























      0












      0








      0








      I want to run the core simulator of https://github.com/P1sec/pycrate.
      And I want to run SERVER_ENB only, so configure like below and create a server.



      from pycrate_corenet import Server

      Server.CorenetServer.SERVER_HNB = {}
      Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
      Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

      epc = Server.CorenetServer()


      But, I got following error.



      $ sudo /usr/local/anaconda3/bin/python EPC.py 
      CorenetServer: loading all ASN.1 and NAS modules, be patient...
      Exception in thread Thread-1:
      Traceback (most recent call last):
      File "/usr/local/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/usr/local/anaconda3/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/Server.py", line 345, in start
      self.GTPUd = self.__class__.GTPUd()
      File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/ServerGTPU.py", line 466, in __init__
      sk.bind((gtpip, self.GTP_PORT))
      OSError: [Errno 99] Cannot assign requested address


      How can I run the server?
      Could you give a usage for this pycrate corenet?










      share|improve this question














      I want to run the core simulator of https://github.com/P1sec/pycrate.
      And I want to run SERVER_ENB only, so configure like below and create a server.



      from pycrate_corenet import Server

      Server.CorenetServer.SERVER_HNB = {}
      Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
      Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

      epc = Server.CorenetServer()


      But, I got following error.



      $ sudo /usr/local/anaconda3/bin/python EPC.py 
      CorenetServer: loading all ASN.1 and NAS modules, be patient...
      Exception in thread Thread-1:
      Traceback (most recent call last):
      File "/usr/local/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/usr/local/anaconda3/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/Server.py", line 345, in start
      self.GTPUd = self.__class__.GTPUd()
      File "/usr/local/anaconda3/lib/python3.6/site-packages/pycrate-0.3-py3.6.egg/pycrate_corenet/ServerGTPU.py", line 466, in __init__
      sk.bind((gtpip, self.GTP_PORT))
      OSError: [Errno 99] Cannot assign requested address


      How can I run the server?
      Could you give a usage for this pycrate corenet?







      python simulator lte






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 7:27









      정도유정도유

      11




      11
























          2 Answers
          2






          active

          oldest

          votes


















          0














          this port is probably occupied by something else (including the other instance on this server).
          If you're on Linux - you can check if it's already listen with netstat -anp | grep 36412. Then if something listed there you have to kill the app or change server's port in SERVER_ENB structure






          share|improve this answer































            0














            I got a solution.



            from pycrate.pycrate_corenet import Server, ServerGTPU

            Server.CorenetServer.SERVER_HNB = {}
            Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
            Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

            ServerGTPU.GTPUd.GTP_IF = ['127.0.0.1'] # set GTP IP

            epc = Server.CorenetServer()





            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407122%2fhow-to-run-pycrate-corenet%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              this port is probably occupied by something else (including the other instance on this server).
              If you're on Linux - you can check if it's already listen with netstat -anp | grep 36412. Then if something listed there you have to kill the app or change server's port in SERVER_ENB structure






              share|improve this answer




























                0














                this port is probably occupied by something else (including the other instance on this server).
                If you're on Linux - you can check if it's already listen with netstat -anp | grep 36412. Then if something listed there you have to kill the app or change server's port in SERVER_ENB structure






                share|improve this answer


























                  0












                  0








                  0







                  this port is probably occupied by something else (including the other instance on this server).
                  If you're on Linux - you can check if it's already listen with netstat -anp | grep 36412. Then if something listed there you have to kill the app or change server's port in SERVER_ENB structure






                  share|improve this answer













                  this port is probably occupied by something else (including the other instance on this server).
                  If you're on Linux - you can check if it's already listen with netstat -anp | grep 36412. Then if something listed there you have to kill the app or change server's port in SERVER_ENB structure







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 22 '18 at 9:25









                  kancomkancom

                  14




                  14

























                      0














                      I got a solution.



                      from pycrate.pycrate_corenet import Server, ServerGTPU

                      Server.CorenetServer.SERVER_HNB = {}
                      Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
                      Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

                      ServerGTPU.GTPUd.GTP_IF = ['127.0.0.1'] # set GTP IP

                      epc = Server.CorenetServer()





                      share|improve this answer




























                        0














                        I got a solution.



                        from pycrate.pycrate_corenet import Server, ServerGTPU

                        Server.CorenetServer.SERVER_HNB = {}
                        Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
                        Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

                        ServerGTPU.GTPUd.GTP_IF = ['127.0.0.1'] # set GTP IP

                        epc = Server.CorenetServer()





                        share|improve this answer


























                          0












                          0








                          0







                          I got a solution.



                          from pycrate.pycrate_corenet import Server, ServerGTPU

                          Server.CorenetServer.SERVER_HNB = {}
                          Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
                          Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

                          ServerGTPU.GTPUd.GTP_IF = ['127.0.0.1'] # set GTP IP

                          epc = Server.CorenetServer()





                          share|improve this answer













                          I got a solution.



                          from pycrate.pycrate_corenet import Server, ServerGTPU

                          Server.CorenetServer.SERVER_HNB = {}
                          Server.CorenetServer.SERVER_ENB['IP'] = '127.0.0.1'
                          Server.CorenetServer.SERVER_ENB['GTPU'] = '127.0.0.1'

                          ServerGTPU.GTPUd.GTP_IF = ['127.0.0.1'] # set GTP IP

                          epc = Server.CorenetServer()






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 27 '18 at 3:14









                          정도유정도유

                          11




                          11






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407122%2fhow-to-run-pycrate-corenet%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to send String Array data to Server using php in android

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Is anime1.com a legal site for watching anime?