title: FOSUserBundle's login form's route not found from network address
body: <p><em>Developing with Symfony (with FOSUserbundle) on WampServer in Windows 10.</em></p>
  
  <p>I must access my application through local network IP (not computer's local IP which would be 127.0.0.1) because at some point in the registration/authentication process, an external (national) authentication service has to be called.</p>
  
  <p>My application works fine when I use <em><a href="http://[my_network_ip]:81/" rel="nofollow noreferrer">http://[my_network_ip]:81/</a></em> as well as <em><a href="http://127.0.0.1:81/" rel="nofollow noreferrer">http://127.0.0.1:81/</a></em> , except for FOSUserBundle's login form. The excepted page is showing when using <em><a href="http://127.0.0.1:81/login" rel="nofollow noreferrer">http://127.0.0.1:81/login</a></em> , but when using <em><a href="http://[my_network_ip]:81/login" rel="nofollow noreferrer">http://[my_network_ip]:81/login</a></em>, I get</p>
  
  <blockquote>
    <p>No route found for "GET /login/"</p>
  </blockquote>
  
  <p><strong>Some configuration:</strong></p>
  
  <p><em>security.yml</em></p>
  
  <pre><code># https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  providers:
      in_memory:
          memory: ~
      fos_userbundle:
          id: fos_user.user_provider.username
  
  firewalls:
      # disables authentication for assets and the profiler, adapt it according to your needs
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
  
      main:
          anonymous: ~
          logout: ~
          # activate different ways to authenticate
  
          # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
          #http_basic: ~
  
          # https://symfony.com/doc/current/security/form_login_setup.html
          form_login: ~
              #login_path: fos_user_security_login
              #check_path: fos_user_security_check
              #provider: fos_userbundle
              #csrf_token_generator: security.csrf.token_manager
              #default_target_path: /
  
  encoders:
      AppBundle\Entity\FasUser: bcrypt
  </code></pre>
  
  <p><em>routing.yml</em></p>
  
  <pre><code>app:
      resource: '@AppBundle/Controller/'
      type: annotation
  
  singlesingon_view:
      path:     '/authentication/singlesignon/'
      defaults: { _controller: AppBundle:AuthenticationSingleSignOn:view }
  
  singlesingout_view:
      path:     '/authentication/singlesignout/'
      defaults: { _controller: AppBundle:AuthenticationSingleSignOut:view }
  
  fos_user:
      resource: "@FOSUserBundle/Resources/config/routing/all.xml"
  </code></pre>
  
  <p><em>app_dev.php</em></p>
  
  <pre><code>if (isset($_SERVER['HTTP_CLIENT_IP'])
      || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
      || !(in_array(@$_SERVER['REMOTE_ADDR'],['[my_network_ip]','127.0.0.1', '::1'], true) || PHP_SAPI === 'cli-server')
  ) {
      header('HTTP/1.0 403 Forbidden');
      exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  }
  </code></pre>
  
  <p>How can I get the login form working with <em><a href="http://[my_network_ip]:81/login" rel="nofollow noreferrer">http://[my_network_ip]:81/login</a></em></p>