Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
udp port scanner required #211092
06/14/08 21:39
06/14/08 21:39
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
i require an udp port scanner. as it's not tcp, this is not trivial, since all port scanners i tried were highly unreliable. a command-line driven tool would be the best.

i tried already with php sockets, but failed. tools like portmap or pcap are too heavy. i just need to check if udp port abcde is open (test package received) or closed (no package received, retry for 5 secs).

could you direct me to such a program? or write a dll for me (not for 3dgs - i use it in a winbinder application)? thnaks in advance

Re: udp port scanner required [Re: broozar] #211096
06/14/08 21:58
06/14/08 21:58
Joined: Aug 2003
Posts: 2,122
Berlin, Germany
checkbutton Offline

Expert
checkbutton  Offline

Expert

Joined: Aug 2003
Posts: 2,122
Berlin, Germany
won't work because of the design of the UDProtcol. As it does not establish a connection, you will never get response as long as the services behind the port does not send a respond. You don't have a handshake procedure.
The only way is that the service behind the port only responses when it gets a UDP packet.


I don't have a homepage, for god's sake!
Re: udp port scanner required [Re: checkbutton] #211101
06/14/08 22:20
06/14/08 22:20
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
so the design would be

client->send packet->remote server gets packet->send packet to client
if(firewall) client gets no response
else udp port xxxxxx open

so, anyone who could code such thing would be my hero.

Re: udp port scanner required [Re: broozar] #211103
06/14/08 22:36
06/14/08 22:36
Joined: Aug 2003
Posts: 2,122
Berlin, Germany
checkbutton Offline

Expert
checkbutton  Offline

Expert

Joined: Aug 2003
Posts: 2,122
Berlin, Germany
Yes, but this will only work if you have a service on the server wich responds to your packet, and this would mean that you have a service, which binds all Ports to itself.
Get the clue? You don't know if the port is open or not unless you have your own program on the server which binds the port. So if the port is open, the port is useless becaus it's already bound.
Or do you just want to test your firewall?


I don't have a homepage, for god's sake!
Re: udp port scanner required [Re: checkbutton] #211107
06/14/08 23:30
06/14/08 23:30
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
i want to test if a certain port on the client computer is open (meaning firewall test, kinda). if so, i will allow the client to start a game server. if it's closed, starting the game server would be useless as noone would be allowed to connect.

Re: udp port scanner required [Re: broozar] #211185
06/15/08 13:35
06/15/08 13:35
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
wellwell, interested?

Re: udp port scanner required [Re: broozar] #211476
06/16/08 21:09
06/16/08 21:09
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655

Re: udp port scanner required [Re: testDummy] #211497
06/16/08 22:59
06/16/08 22:59
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875


even nmap has problems.

Re: udp port scanner required [Re: broozar] #211500
06/16/08 23:31
06/16/08 23:31
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
Well as you can tell from the error message nmap is having trouble because you are scanning 127.0.0.1 and not some random server. From what I understand with UDP you can only get rejection messages back to the scanner. Thus if you do not get a message it either means that there is a listener or that the rejection (ICMP) message was filtered.

I am still not sure what you are trying to do. If you are on the client you could just run 'netstat -a -p udp' to see the bound ports and pick one which is not listed there.

Re: udp port scanner required [Re: Marco_Grubert] #211502
06/16/08 23:57
06/16/08 23:57
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
here is my scenario:

we are developing a game. a multiplayer game. player A wants to host.
Player A has a router or is part of a greater network and so has no "direct" wire to the net. Player A is a gamer and does not know about ports. so he starts the server and wants his friends to join him. but they can't because they cannot connect, because the router is blocking the UDP port the game uses. player A blames the game and spams our support forum.

to prevent this, i wanted to include a small port checker utility that alerts the user if udp port xxxxx is closed, so he has to open it first before others can play with him.

i found the solution for nmap: i have to use my "real" (net) IP. so with 77.169.xxx.xxx it works just fine.

the problem remains: it's nmap which requires winpcap which are both no lightweight tools... i'd prefer something dead simple, something that doesn't install 2 unwanted programs on the client system.

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1