A quick google search tells me this – but again my friend, I have never tried this on a windows machine.
?
To enable IP forwarding on Windows, modify the registry by setting the?IPEnableRouter?value to 1, then restart your computer.?
Here's a more detailed explanation:
IP forwarding (also known as routing) allows a device to pass incoming IP packets from one network interface to another, enabling communication between different networks.?
You'll need to enable IP forwarding if you want to use your Windows computer as a router or gateway between two or more networks.?
- How to Enable IP Forwarding:
- Open Registry Editor:?Search for "regedit" in the Start Menu and open the Registry Editor.?
- Navigate to the Key:?Go to?HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.?
- Find or Create?IPEnableRouter:?Look for the?IPEnableRouter?value.?If it doesn't exist, create a new REG_DWORD value named?IPEnableRouter.?
- Set the Value:?Right-click on?IPEnableRouter?and select "Modify."?Change the Value Data to?1.?
- Restart:?Close the Registry Editor and restart your computer for the changes to take effect.?
After restarting, you can verify that IP forwarding is enabled using the command prompt with the command "netsh interface ipv4 show interface <if id>" and check if forwarding is set to enabled.?
?
?
Hope this is of help,
Dave, N8ZFM
?
I have no idea how to set this on a Windows machine as the host – but do you have IP Forwarding set to on?? In Linux, which I am familiar with this is required, and I would imagine it is for windows too.??
???In Linux its ---?? net.ipv4.ip_forward=1
?
If forwarding is not turned on, the behavior is similar to what you show on a Linux host.
?
Thanks,
Dave N8ZFM
?
it now works after starting hercules in administrator mode.
However i still cannot ping from inside z/OS to the external.
My z/OS IP address is 192.168.0.66
my PC has an IP address 192.168.0.115
From my PC i can ping the z/OS stack. I can tn3270 into it.
but inside Z/OS i cannot ping the gateway 192.168.0.254.
the ping test of TT64TEST returns:
23:05:37.011 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::IntSyncDeviceIoControl: DeviceIoControl(-2147483648) failed; rc=1: Fonction incorrecte.
23:05:37.011 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
23:05:37.018 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::IntSyncDeviceIoControl: DeviceIoControl(-2147483648) failed; rc=1: Fonction incorrecte.
23:05:37.018 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
23:05:37.028 Begin TTTest64.exe, version: "** UNPAID TRIAL COPY ** ?3.9.0.6222" (3.9.0.6222): "64-bit Release version" on Friday, April 04, 2025 23:05:37 PM ...
23:05:37.028 Copyright (C) 2002-2025, Software Development Laboratories.
23:05:37.028
23:05:37.028 Running in Elevated (Administrator) mode on "TC-MAUGUIO" (Windows 11 Core 24H2 10.0.26100) 64-bit (MP=8).
23:05:37.028
23:05:37.028 Using WinPCap Packet.DLL, version "4.1.0.2980" (4.1.0.2980), driver version "4.1.0.2980" ...
23:05:37.028
23:05:37.028 Using FishPack64.dll, version: "** UNPAID TRIAL COPY ** ?3.9.0.6222" (3.9.0.6222): "64-bit Release version" ...
23:05:37.028 Copyright (C) 2002-2025, Software Development Laboratories
23:05:37.028
23:05:37.028 Using TunTap64.dll, version: "** UNPAID TRIAL COPY ** ?3.9.0.6222" (3.9.0.6222): "64-bit Release version" ...
23:05:37.028 Copyright (C) 2002-2025, Software Development Laboratories
23:05:37.028
23:05:37.028 Using FishLib64-M90a.dll, version: "2.16.4.6192" (2.16.4.6192): "64-bit Release version" ...
23:05:37.028 Copyright (C) 2004-2025, Software Development Laboratories
23:05:37.028
23:05:37.028 --------- ?The following relevant DosDevices are defined ---------
23:05:37.028
23:05:37.028 NPF_{0B8EC402-056E-4CCA-BBEC-C00830DD52CF}
23:05:37.028 NPF_{113B1E75-297A-45C6-81F6-26FC2604601D}
23:05:37.028 NPF_{2BF794B0-FDF9-417E-9AA0-CA40D8C9BC2E}
23:05:37.028 NPF_{46DC68EB-0A11-43E1-878E-6E7DCE3B6E4C}
23:05:37.028 NPF_{52AC30A7-9D67-4B09-A987-748A93512B4C}
23:05:37.028 NPF_{5E5E0B54-0836-4810-BBA8-0F1B5179D024}
23:05:37.028 NPF_{5EA7E55C-C767-4D87-A36C-6A1CD01D9594}
23:05:37.028 NPF_{7F34995B-87B0-4880-BDC6-9EE8D12621D4}
23:05:37.028 NPF_{8076AF1C-BE9F-431E-A606-D23BA2344C6B}
23:05:37.028 NPF_{D11FCE4C-5245-4FA5-B973-0023EC76C1E9}
23:05:37.028 NPF_{D2FE1572-AF73-4C75-8428-B49674C6D17A}
23:05:37.028 NPF_{E3D79D7C-C00C-4550-831C-CEB488768684}
23:05:37.028 NPF_{F3BFCF97-DE2D-484E-B960-6262B9DE8FCB}
23:05:37.029
23:05:37.029 ------------------------- ?Network Information ?-------------------------
23:05:37.029
23:05:37.029 ? Host Name . . . . . . . . . : TC-MAUGUIO
23:05:37.029 ? Node Type . . . . . . . . . : Hybrid
23:05:37.029 ? DNS Servers . . . . . . . . : 8.8.8.8
23:05:37.029 ? IP Routing Enabled. . . . . : no
23:05:37.029
23:05:37.029 ? Network Address ? ? ? ? ?Netmask ?Gateway Address ? ? ? ?Interface ?Metric
23:05:37.029 ? ? ? ? ? 0.0.0.0 ? ? ? ? ?0.0.0.0 ? ?192.168.0.254 ? ?192.168.0.105 ? ? ?35
23:05:37.029 ? ? ? ? 127.0.0.0 ? ? ? ?255.0.0.0 ? ? ? ?127.0.0.1 ? ? ? ?127.0.0.1 ? ? 331
23:05:37.029 ? ? ? ? 127.0.0.1 ?255.255.255.255 ? ? ? ?127.0.0.1 ? ? ? ?127.0.0.1 ? ? 331
23:05:37.029 ? 127.255.255.255 ?255.255.255.255 ? ? ? ?127.0.0.1 ? ? ? ?127.0.0.1 ? ? 331
23:05:37.029 ? ? ? 192.168.0.0 ? ?255.255.255.0 ? ?192.168.0.105 ? ?192.168.0.105 ? ? 291
23:05:37.029 ? ? 192.168.0.105 ?255.255.255.255 ? ?192.168.0.105 ? ?192.168.0.105 ? ? 291
23:05:37.029 ? ? 192.168.0.255 ?255.255.255.255 ? ?192.168.0.105 ? ?192.168.0.105 ? ? 291
23:05:37.029 ? ? ? ? 224.0.0.0 ? ? ? ?240.0.0.0 ? ? ? ?127.0.0.1 ? ? ? ?127.0.0.1 ? ? 331
23:05:37.029 ? ? ? ? 224.0.0.0 ? ? ? ?240.0.0.0 ? ?192.168.0.105 ? ?192.168.0.105 ? ? 291
23:05:37.029 ? 255.255.255.255 ?255.255.255.255 ? ? ? ?127.0.0.1 ? ? ? ?127.0.0.1 ? ? 331
23:05:37.029 ? 255.255.255.255 ?255.255.255.255 ? ?192.168.0.105 ? ?192.168.0.105 ? ? 291
23:05:37.043
23:05:37.043 ? Default gateway: ?192.168.0.254 ?(68-A3-78-7A-C3-9B)
23:05:37.043
23:05:37.043 -------------------------- ?Detected Adapters ?--------------------------
23:05:37.043
23:05:37.043 Connection ? ? ? ? ?= Wi-Fi
23:05:37.043 AdapterName ? ? ? ? = NPF_{0B8EC402-056E-4CCA-BBEC-C00830DD52CF}
23:05:37.043 Description ? ? ? ? = Realtek RTL8821CE 802.11ac PCIe Adapter
23:05:37.043 PhysAddr ? ? ? ? ? ?= 60-E9-AA-4D-3F-6D
23:05:37.043 LinkType ? ? ? ? ? ?= NdisMedium802_3
23:05:37.043 Default Adapter? ? ?= Yes
23:05:37.043 MediaConnected? ? ? = Yes
23:05:37.043 PromiscuousMode? ? ?= Yes
23:05:37.043 DHCP Enabled? ? ? ? = Yes
23:05:37.043 LinkSpeed ? ? ? ? ? = 433.3 Mbps
23:05:37.043 MaxPacketLen ? ? ? ?= 1514
23:05:37.043 IPAddr ? ? ? ? ? ? ?= 192.168.0.105
23:05:37.043 IPAddrMask ? ? ? ? ?= 255.255.255.0
23:05:37.043 GatewayIPAddr ? ? ? = 192.168.0.254
23:05:37.043 dwIndex ? ? ? ? ? ? = 0x00000003
23:05:37.043 Checksum offloading = as follows:
23:05:37.043
23:05:37.043 ? ?V4Transmit.TcpChecksum: ?no
23:05:37.043 ? ?V4Transmit.UdpChecksum: ?no
23:05:37.043 ? ?V4Transmit.IpChecksum: ? no
23:05:37.043
23:05:37.043 ? ?V4Receive.TcpChecksum: ? no
23:05:37.043 ? ?V4Receive.UdpChecksum: ? no
23:05:37.043 ? ?V4Receive.IpChecksum: ? ?no
23:05:37.043
23:05:37.043 ? ?V6Transmit.TcpChecksum: ?no
23:05:37.043 ? ?V6Transmit.UdpChecksum: ?no
23:05:37.043
23:05:37.043 ? ?V6Receive.TcpChecksum: ? no
23:05:37.043 ? ?V6Receive.UdpChecksum: ? no
23:05:37.043
23:05:37.043 Large Segment Offloading (LSO) = as follows:
23:05:37.043
23:05:37.043 ? ?LSO v1 (IPv4): ? ? ? ? ? no?
23:05:37.043 ? ?LSO v1 (IPv6): ? ? ? ? ? no?
23:05:37.043
23:05:37.043 ? ?LSO v2 (IPv4): ? ? ? ? ? no?
23:05:37.043 ? ?LSO v2 (IPv6): ? ? ? ? ? no?
23:05:37.043
23:05:37.045 Connection ? ? ? ? ?= Connexion au réseau local* 1
23:05:37.045 AdapterName ? ? ? ? = NPF_{E3D79D7C-C00C-4550-831C-CEB488768684}
23:05:37.045 Description ? ? ? ? = Microsoft Wi-Fi Direct Virtual Adapter
23:05:37.045 PhysAddr ? ? ? ? ? ?= 62-E9-AA-4D-3F-6D
23:05:37.045 LinkType ? ? ? ? ? ?= NdisMedium802_3
23:05:37.045 Default Adapter? ? ?= No
23:05:37.045 MediaConnected? ? ? = No ? ? ? ? ? ? ? ? ? ** CABLE UNPLUGGED **
23:05:37.045 PromiscuousMode? ? ?= No ? ? ? ? ? ? ? ? ? ** WARNING **
23:05:37.045 DHCP Enabled? ? ? ? = Yes
23:05:37.045 LinkSpeed ? ? ? ? ? = 54.0 Mbps
23:05:37.045 MaxPacketLen ? ? ? ?= 1514
23:05:37.045 IPAddr ? ? ? ? ? ? ?= 0.0.0.0
23:05:37.045 IPAddrMask ? ? ? ? ?= 0.0.0.0
23:05:37.045 GatewayIPAddr ? ? ? = 0.0.0.0
23:05:37.045 dwIndex ? ? ? ? ? ? = 0x00000011
23:05:37.045 Checksum offloading = as follows:
23:05:37.045
23:05:37.045 ? ?V4Transmit.TcpChecksum: ?no
23:05:37.045 ? ?V4Transmit.UdpChecksum: ?no
23:05:37.045 ? ?V4Transmit.IpChecksum: ? no
23:05:37.045
23:05:37.045 ? ?V4Receive.TcpChecksum: ? no
23:05:37.045 ? ?V4Receive.UdpChecksum: ? no
23:05:37.045 ? ?V4Receive.IpChecksum: ? ?no
23:05:37.045
23:05:37.045 ? ?V6Transmit.TcpChecksum: ?no
23:05:37.045 ? ?V6Transmit.UdpChecksum: ?no
23:05:37.045
23:05:37.045 ? ?V6Receive.TcpChecksum: ? no
23:05:37.045 ? ?V6Receive.UdpChecksum: ? no
23:05:37.045
23:05:37.045 Large Segment Offloading (LSO) = as follows:
23:05:37.045
23:05:37.045 ? ?LSO v1 (IPv4): ? ? ? ? ? no?
23:05:37.045 ? ?LSO v1 (IPv6): ? ? ? ? ? no?
23:05:37.045
23:05:37.045 ? ?LSO v2 (IPv4): ? ? ? ? ? no?
23:05:37.045 ? ?LSO v2 (IPv6): ? ? ? ? ? no?
23:05:37.045
23:05:37.046 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::IntSyncDeviceIoControl: DeviceIoControl(-2147483648) failed; rc=1: Fonction incorrecte.
23:05:37.046 ** CAdapter(NPF_{E3D79D7C-C00C-4550-831C-CEB488768684})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
23:05:37.047 Connection ? ? ? ? ?= Connexion au réseau local* 2
23:05:37.047 AdapterName ? ? ? ? = NPF_{8076AF1C-BE9F-431E-A606-D23BA2344C6B}
23:05:37.047 Description ? ? ? ? = Microsoft Wi-Fi Direct Virtual Adapter
23:05:37.047 PhysAddr ? ? ? ? ? ?= E2-E9-AA-4D-3F-6D
23:05:37.047 LinkType ? ? ? ? ? ?= NdisMedium802_3
23:05:37.047 Default Adapter? ? ?= No
23:05:37.047 MediaConnected? ? ? = No ? ? ? ? ? ? ? ? ? ** CABLE UNPLUGGED **
23:05:37.047 PromiscuousMode? ? ?= Yes
23:05:37.047 DHCP Enabled? ? ? ? = No
23:05:37.047 LinkSpeed ? ? ? ? ? = 54.0 Mbps
23:05:37.047 MaxPacketLen ? ? ? ?= 1514
23:05:37.047 IPAddr ? ? ? ? ? ? ?= 0.0.0.0
23:05:37.047 IPAddrMask ? ? ? ? ?= 0.0.0.0
23:05:37.047 GatewayIPAddr ? ? ? = 0.0.0.0
23:05:37.047 dwIndex ? ? ? ? ? ? = 0x0000000D
23:05:37.047 Checksum offloading = as follows:
23:05:37.047
23:05:37.047 ? ?V4Transmit.TcpChecksum: ?no
23:05:37.047 ? ?V4Transmit.UdpChecksum: ?no
23:05:37.047 ? ?V4Transmit.IpChecksum: ? no
23:05:37.047
23:05:37.047 ? ?V4Receive.TcpChecksum: ? no
23:05:37.047 ? ?V4Receive.UdpChecksum: ? no
23:05:37.047 ? ?V4Receive.IpChecksum: ? ?no
23:05:37.047
23:05:37.047 ? ?V6Transmit.TcpChecksum: ?no
23:05:37.047 ? ?V6Transmit.UdpChecksum: ?no
23:05:37.047
23:05:37.047 ? ?V6Receive.TcpChecksum: ? no
23:05:37.047 ? ?V6Receive.UdpChecksum: ? no
23:05:37.047
23:05:37.047 Large Segment Offloading (LSO) = as follows:
23:05:37.047
23:05:37.047 ? ?LSO v1 (IPv4): ? ? ? ? ? no?
23:05:37.047 ? ?LSO v1 (IPv6): ? ? ? ? ? no?
23:05:37.047
23:05:37.047 ? ?LSO v2 (IPv4): ? ? ? ? ? no?
23:05:37.047 ? ?LSO v2 (IPv6): ? ? ? ? ? no?
23:05:37.047
23:05:37.050 ** UNPAID TRIAL COPY **
23:05:37.050
23:05:42.673 *** Interface tun0 enabled/up... (ip=192.168.0.66, mac=02-00-5E-80-00-6F)
23:05:42.673
23:05:42.674 ** UNPAID TRIAL COPY **
23:05:42.674
23:05:46.837
23:05:46.837 ** START ** UNPAID TRIAL COPY ** PING TEST **
23:05:46.837
23:05:46.837 ?ping ?-c 3 ?-i 1000 ?-s 32 ?-w 500 ?8.8.8.8
23:05:46.837
23:05:46.837 ?Sending ping #1 bytes=32 to 8.8.8.8...
23:05:47.339 ?Ping #1 has timed out.
23:05:47.839 ?Sending ping #2 bytes=32 to 8.8.8.8...
23:05:48.340 ?Ping #2 has timed out.
23:05:48.839 ?Sending ping #3 bytes=32 to 8.8.8.8...
23:05:49.340 ?Ping #3 has timed out.
23:05:50.340
23:05:50.340 ?Ping statistics for 8.8.8.8:
23:05:50.340
23:05:50.340 ? ? ?3 Pings Sent
23:05:50.340 ? ? ?0 Replies Received (Minimum = 0ms, Maximum = 0ms, Average = 0ms)
23:05:50.340 ? ? ?3 Pings Timeouts
23:05:50.340 ? ? ?0 Duplicate Replies
23:05:50.340 ? ? ?3 Pings Lost (100%)
23:05:50.340
23:05:50.340 ?Ping test has FAILED.
23:05:50.340
23:05:50.340 ** END ** UNPAID TRIAL COPY ** PING TEST **
23:05:50.340
Can anyone help on this ?