flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > udp port 67, multiple listener in windows 11

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 13344
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 25 Apr 2025, 19:49
in windows cmd.exe
Code:
C:\Windows\System32>netstat -anb | findstr ":67"
 UDP    172.25.64.1:67         *:*
    

that ip is hyper-v default switch, and the process belong to ics, under service name SharedAccess

i downloaded tiny dhcp server, https://softcab.com/archive/dhcp-server.php and run it
Code:
C:\Windows\System32>netstat -anb | findstr ":67"
  UDP    172.25.64.1:67         *:*
  UDP    172.25.64.1:67         *:*
  UDP    192.168.43.220:67      *:*
    

now we can see both are listening 67 udp, so i tried to use golang and write a dhcp that listen udp port 67 but denied,
Code:
Found interface 'vEthernet (Default Switch)' with IP address: 172.25.64.1
Failed to listen on 172.25.64.1:67: listen udp4 172.25.64.1%vEthernet (Default Switch):67: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
    

so how come it can listen, but my program can't?

Image
Post 25 Apr 2025, 19:49
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1149
Location: Russia
macomics 25 Apr 2025, 20:33
Most likely, one of the processes received a copy of the handle after creation with InheritHandles=True
Two ports in the same process are open on different system interfaces.
Post 25 Apr 2025, 20:33
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13344
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 26 Apr 2025, 22:39
i tested the following, listening in 0.0.0.0

i can receive discover from hyper-v client since it posted to broadcast, but to offer it from 0.0.0.0 is possible or impossible idk yet, do i need to bind hyper-v gateway in this case 172.25.64.1 to offer 172.25.64.100?

btw, am using

"github.com/insomniacslk/dhcp/dhcpv4"
"github.com/insomniacslk/dhcp/dhcpv4/server4"
Post 26 Apr 2025, 22:39
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13344
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 15 May 2025, 21:46
i found a new way to doing this without coding, by using a loop adapter, wireguard and new-netnat ps command

but too bad, it doesnt seem to bypass isp hotspot restrictions,

still finding ways to accomplish this objective
Post 15 May 2025, 21:46
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13344
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 16 May 2025, 05:20
wireguard, every proxy, seems to accomplish what i wanted, but not so stable, more testing required
Post 16 May 2025, 05:20
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13344
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 16 May 2025, 18:49
i figured out, maybe the seamless and easiest method would be getting an old phone and rooted it, Laughing
Post 16 May 2025, 18:49
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.