Announcement

Collapse
No announcement yet.

change web ip port in order to access from Outside Lan/Wlan

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • change web ip port in order to access from Outside Lan/Wlan

    Hi,

    I'm trying to configure diffent port (standart is 8080 but I want to change to ex. 101) in order to access outside lan. How can I do that? Because in Brazil the home (residential) internet providers avoid access by port 8080 from outside.
    Obs.: I've already try to configure my router (port forwarding or virtual server config) using the port 8080 and didnt work. I have other server that uses port "91" and I can access from outside lan.
    Thank you,
    Marcos

  • #2
    Hello,
    As i know, the default port for PHPoC is 80, not 8080.
    could you please try it with port 80 first?

    Comment


    • Marcos M Yoshida
      Marcos M Yoshida commented
      Editing a comment
      Hi,
      Thanks you. Yes, you are right! I´ve re-configure and tried using port 80, and it works only internally (same router). Outside it is not worked even, configured the router.

  • #3
    Hello Marcos M Yoshida,

    To change HTTP port, you need to do the following simple steps:
    1. Create phpoc.ini file with content "http_listen_port = 1010" and upload it to PHPoC device (see image)
    2. Reset PHPoC devices
    Click image for larger version

Name:	change_port.JPG
Views:	1
Size:	23.3 KB
ID:	1078
    And try on web browser with syntax http://ip_address:1010/
    You can chang port 1010 to another port you want

    Comment


    • Marcos M Yoshida
      Marcos M Yoshida commented
      Editing a comment
      Thanks Khanh,

      But it was not working (outside ou internally). I've tried port 71 and created the phpoc.ini file as you told and tried ex.: http://192.168.0.200:71 it looks like the port continues as 80 (just http://192.168.0.200 works).

      Regards,

  • #4
    There are list of ports are assigned by Internet Assigned Numbers Authority (IANA) (or by Internet Corporation for Assigned Names and Numbers (ICANN) for for use with a certain protocol or application.
    Port 71 is officially assigned for NETRJS protocol. You should not use that port.
    You should use port number from 59152 to 65535.
    Because:
    - Ports 0 to 1023 – system or well-known ports
    - Ports 1024 to 49151 – user or registered ports
    Although you can use some ports in two above range because they are not officially assigned (for example, port 1010). For sure, you should you port number from 59152 to 65535.

    You can refer to this list:
    https://en.wikipedia.org/wiki/List_o...ll-known_ports

    Comment


    • Marcos M Yoshida
      Marcos M Yoshida commented
      Editing a comment
      Hi,
      I've tried 60001 but not worked. Thanks anyway!

  • #5
    All,
    Thanks
    for helping! I've got it following Khanh instruction. The problem was that I hadn't updated the firmware to 1.4.

    Comment


    • #6
      Great to hear that!

      Comment


      • #7
        Hi all ,

        Do I need libraries for connecting over the internet?
        I setup my router, but does not work !
        Can someone show a simple example for that...

        Thanks

        Comment


        • support
          support commented
          Editing a comment
          Dear Äaren Lee,
          Which product are you using? PHPoC Blue/Black or PHPoC [WiFi] Shield for Arduino?
          Are you connecting via Ethernet or WiFi?
          - If using PHPoC [WiFi] Shield for Arduino, It needs to install PHPoC library.
          - If using WiFi, you need an USB WLAN Dongle

      • #8
        Hi,
        i use PHPoC Blue with a WLAN Dongle.
        The internal access is no problem, it works fine.

        Comment


        • support
          support commented
          Editing a comment
          No library is required to connect to Internet. I think problem in your network configuration.
          Could you please show screenshot of the network configuration on PHPoC Blue? and please describe your application!

      • #9
        Hi support,
        i use the example\p4s\05.html5_graphics\01.uio_ob_led
        it works ! If im in my home network.

        Comment


        • support
          support commented
          Editing a comment
          If it work in your local network, It means nothing wrong with you application and configuration on PHPoC. Currently you are using a private IP, which can be accessed from local network only. In order to access from Internet (outside of your LAN network), you need to setup "Port Forwarding" on your Access Point.

      • #10
        Hi,
        @support,
        ok thank you.

        Comment


        • support
          support commented
          Editing a comment
          You're welcome!
      Working...
      X