473,378 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

unable to open socket connections on select ports?

I wrote a PHP script that needs to connect to port 53 on UDP and on
some (shared) servers it doesn't seem to be working. This makes me
currious - is it possible that these servers connections on specific
ports has been disallowed? If so, how would one go about doing this?

Also, how might I go about detecting it?

May 15 '06 #1
1 2663
>I wrote a PHP script that needs to connect to port 53 on UDP and on
some (shared) servers it doesn't seem to be working. This makes me
Port 53 on the DESTINATION system, port 53 on the LOCAL system, or
both? Are you sure the destination system is running a server on
port 53?

If the local system is running its own DNS server (may be a good
idea for a hosting web server) on port 53, you can't bind to port
53 on the local system because the nameserver is already using it.
Also, binding to low-numbered ports ( < 1024 ) may require root
privilege. But to talk to port 53 you don't need port 53 on your
end.
currious - is it possible that these servers connections on specific
ports has been disallowed? If so, how would one go about doing this?
Firewalls, either on the host itself (Linux and FreeBSD have things
like ipf and ipfw in the kernel if it's built that way), or it could
be a nearby Cisco router). Port 53 isn't something normally blocked,
though. It's sometimes the *ONLY* UDP let through.
Also, how might I go about detecting it?


I think you just did. Try to send a packet and see what comes back
(ICMP port unreachable, ICMP host unreachable, ICMP prohibited, nothing,
or a response) with something like tcpdump.

Gordon L. Burditt
May 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lloyd Dupont | last post by:
I'm doing some stress test for some TcpIP communication. rougly it's someting like that: for(i=0; i<1000; i++) { Sockect s = new Socket() s.Connect(endPoint); NetworkStream ns = new...
9
by: Stuart | last post by:
I am trying to execute a Socket.Select() statement on an arraylist of sockets. The problem is that I can only go up to 64 sockets at a time. I know that I have to manipulate the FD_SetSize to...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
5
by: zxo102 | last post by:
Hi, I am doing a small project using socket server and thread in python. This is first time for me to use socket and thread things. Here is my case. I have 20 socket clients. Each client send a...
5
by: Arno | last post by:
reposted with the right microsoft managed newsgroup ID: Sorry for the inconvinience Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable...
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
0
by: george585 | last post by:
Hello! I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is...
1
by: Laszlo Nagy | last post by:
Hi All, I'm using a simple program that uploads a file on a remote ftp server. This is an example (not the whole program): def store(self,hostname,username,password,destdir,srcpath):...
13
by: Alan Wright | last post by:
Hi Folks, I am newbie to Python, but have successfully created a simple client and server setup, I have one issue though. I am trying to test a box by sending many TCP conns (WHILE loop) but not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.