1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

port forwarding a controller

  • evo85210
  • February 18, 2021 at 5:13 PM
  • Thread is Resolved
  • evo85210
    Trophies
    3
    Posts
    63
    • February 18, 2021 at 5:13 PM
    • #1

    This is a bizarre question, but as we are stuck in bizarre times known as COVID-19, I'd have to ask.

    The situation is that I have a KRC4 (KSS8.3.33) with KUKAPROXYVAR (KPV) installed, I have a custom program that can send commands to KPV by setting the IP and port number.

    The controller is plugged into a wifi router thru the KLI port. The router DHCP is configured for 172.31.0.2 - 172.31.255.254, and the controller is assigned 172.31.1.147. This works perfectly, I can access the controller when connected to that router and send commands to KPV thru port 7000.

    Now i'm thinking of doing this over the internet, as some of my students are in quarantine, but I still want them to be able to work with the robot.

    Yes I am aware of the risks involved, both physically and device security wise. I'll only connect the router to the internet when needed, the robot speed will be slow, and I'll be monitoring the robot with my hands on the stop button anytime the robot is being controlled. I've also cloned the entire SSD just in case...etc

    I've tried port forwarding, opening a port on my router to 172.31.1.147:7000, but when I try to access the controller from another network, it doesn't work. Just wondering if anyone have done anything this bizarre and can give me some pointers.:upside_down_face:

  • Go to Best Answer
  • SkyeFire
    Reactions Received
    1,044
    Trophies
    12
    Posts
    9,391
    • February 18, 2021 at 5:40 PM
    • #2

    Hm... given how KVP works, this probably isn't a KUKA question as much as it is a general IT/Networking question. KVP traffic should look like ordinary TCP/IP or UDP traffic to the router. You might want to ask the people running your network architecture.

    When you "try to connect from a different network," how are you doing that? Are you trying to connect to the router IP, and counting on the router to forward any traffic on 7000? Or are you trying to connect to the robot's IP address?

  • evo85210
    Trophies
    3
    Posts
    63
    • February 18, 2021 at 5:53 PM
    • #3

    Yes, that's what I think too, KVP should just be like any other TCP/IP traffic.

    I'm entering the public IP of the router and counting on the router to forward the traffic to 7000, I believe the router is doing its part, as I've also setup a remote desktop connection to another computer connected to the router, and that port forwarding works fine.

    So I thought I'd ask here, since the problem seems to be the controller not picking up the packet for whatever reason. I'm not 100% sure tho, so if you have ideas on how to troubleshoot, I'd be happy to try them.

    .

    I did ask the IT department, they were not very helpful, basically told me anything I do is my own resposibility and they don't want a part of it in case something goes wrong.

  • panic mode
    Reactions Received
    1,268
    Trophies
    11
    Posts
    13,040
    • February 18, 2021 at 6:44 PM
    • #4
    Quote

    Yes, that's what I think too, KVP should just be like any other TCP/IP traffic.

    this makes it sounds simple but.. is it?

    what other programs did you successfully use to connect to some node over internet? and i don't mean products meant to work over internet... how about ping? telnet?

    the thing is that connecting from outside means that remote node is a client and local node (robot) is a server. what did you do to make sure this server is accessible from outside?

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • evo85210
    Trophies
    3
    Posts
    63
    • February 19, 2021 at 8:56 AM
    • #5

    I'm not aware of any other configurations I need to do? Once the port forwarding it setup, shouldn't the router take care of everything? and the controller can just treat the connection the same as a local connection?

    What I've done:

    On the controller:
    - Under Network configuration, add NAT:(Port:7000) tcp/udp

    - copied and run KPV

    On the router:

    - Configured static public IP (A)

    - Configured LAN IP (172.31.0.1 / 16)

    - Configured DHCP (172.31.0.2 ~ 172.31.255.254)

    - Reserved 172.31.1.147 with the KLI's MAC address

    - Configure Virtual Servers/PortForwarding, map external port C to internal IP 172.31.1.147 internal port 7000 (all protocol)

    My router is tp-link C7 v4, if that is of any importance

    One interesting observation is that I don't see the controller IP 172.31.1.147 on my DCHP Client List, but when ping'ed from within the network, it responds and I can connect to it.

    I've tried DMZ 172.31.1.147, but even then I couldn't connect to the controller using the public IP A

  • Online
    hermann
    Reactions Received
    405
    Trophies
    9
    Posts
    2,597
    • February 19, 2021 at 9:05 AM
    • #6

    How do you connect the router to the internet? May be on the way to your router port 7000 is blocked.

  • evo85210
    Trophies
    3
    Posts
    63
    • February 19, 2021 at 10:43 AM
    • #7

    I believe I'm connected directly to the ISP

    I've gave external port 7000 to my remote desktop port forwarding and that worked, so I don't think there's anything wrong up to the router.

  • evo85210
    Trophies
    3
    Posts
    63
    • February 20, 2021 at 7:12 AM
    • #8

    Update, was able to port forward the controller after changing from KLI port to X47, had to completely reconfigure my router to match ip range and submask of X47, but it now all works fine.

    It seems like KLI port has some kind of firewall where it filters some connection (ie: unable to rdp over KLI on KSS8.3.33). Not sure how it was able to differenciate a packet send locally vs thru the internet tho.

    Update2:
    What I did was I gave the router 192.168.0.100 as the gateway, and that works for port forwarding, but then the problem became when I reboot the controller, it would get stuck on initializing, my guess is that the controller saw the router as an internal component and sent it some packet/command, to which the router ignored and cause the controller to hang/wait

    I later change the gateway to 192.168.1.1, which solved the reboot issue but stopped the port forwarding from working, since devices have to be on the 192.168.0.x subnet to communicate with the controller.

    So currently it's a mess, locally everything works, since I configured my DHCP range on the router to 192.168.0.2-192.168.0.254
    For remote connections, I've switched to a router that supports openVPN, so I'm going to test that.

    Edited once, last by evo85210 (March 4, 2021 at 3:35 PM).

  • caioiac
    Trophies
    3
    Posts
    9
    • June 17, 2023 at 10:18 PM
    • Best Answer
    • #9

    Not sure if still needed or applicable, but I have been using Tailscale to connect remotely to my robot and it has been doing wonders!

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download