473,788 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: socket programming (client-server) error


On 22 okt 2008, at 13:50, ryan fox wrote:
i have implemented a small client server model to do file transfer
over a LAN network.

It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.

The message is as follows:

Do you want to keep blocking this program?
there are three options below it. 1. Keep Blocking 2. Unblock 3. Ask
Me later.

I selected the option unblock.Even then the client and server are not
able to communicate.
I get a error saying that:-

socket.error: (10060, 'Operation timed out')

I guess its a firewall problem... How do i go abt it?????
any help? --
does it work if you temporarily switch off the firewall?
gr
Arno
Oct 22 '08 #1
3 1658
On Oct 22, 6:18*pm, Python <pyt...@rgbaz.e uwrote:
On 22 okt 2008, at 13:50, ryan fox wrote:
i have implemented a small client server model to do file transfer
over a LAN network.
It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.
The message is as follows:
* * *Do you want to keep blocking this program?
there are three options below it. 1. Keep Blocking 2. Unblock 3. Ask
Me later.
I selected the option *unblock.Even then the client and server are not
able to communicate.
I get a error saying that:-
socket.error: (10060, 'Operation timed out')
I guess its a firewall problem... How do i go abt it?????
any help? --

does it work if you temporarily switch off the firewall?

gr
Arno
HI arno ,

In the firewall setting i have unblocked this program and tried. But
it works on some machines on the LAN and doesnt work on other
machines.
Even if the firewall is on it work on some machines. So narrowing down
on the problem seems tough here....

any ideas?
Oct 23 '08 #2
On Thu, Oct 23, 2008 at 1:49 PM, ryan <ry********@gma il.comwrote:
any ideas?
As mentioned before, try:
* Turning _off_ _all_ _firewalls_.

cheers
James

--
--
-- "Problems are solved by method"
Oct 23 '08 #3

On 23 okt 2008, at 05:49, ryan wrote:
On Oct 22, 6:18 pm, Python <pyt...@rgbaz.e uwrote:
>On 22 okt 2008, at 13:50, ryan fox wrote:
>>i have implemented a small client server model to do file transfer
over a LAN network.
>>It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.
>>The message is as follows:
>> Do you want to keep blocking this program?
there are three options below it. 1. Keep Blocking 2. Unblock 3. Ask
Me later.
>>I selected the option unblock.Even then the client and server are
not
able to communicate.
I get a error saying that:-
>>socket.erro r: (10060, 'Operation timed out')
>>I guess its a firewall problem... How do i go abt it?????
any help? --

does it work if you temporarily switch off the firewall?

gr
Arno

HI arno ,

In the firewall setting i have unblocked this program and tried. But
it works on some machines on the LAN and doesnt work on other
machines.
Even if the firewall is on it work on some machines. So narrowing down
on the problem seems tough here....

any ideas?
--
yeah a million ideas...
really it sounds like a firewall problem, specially cu it work on one
machine but not on the other.
try switch it off completely... obviously "unblocking " doesn't seem to
do the job

if it works on one machine, the code is obviously ok
i assume you;re on a windows machine?

to mention some other possible reasons,
are you using an IP or DNS name?
maybe the firewall blocks the DNS server and can't retrieve an IP for
the server?
can you access the internet from those machines?

maybe the machine is not on the same subnet as the server
can you ping the server?

for more reasons i'm afraid you have to try another list
since this doesn't sound like a python problem
and i'm definitely not a windows guru (only osx, linux and freebsd here)

gr
arno
Oct 23 '08 #4

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

Similar topics

0
1407
by: Rob | last post by:
Hello, I've got a huge problem with async sockets. I've created a networked virtual environment, using async socket programming. The problem I face occurs when I close the listener socket. It listens using socket.BeginAccept(...). When a client disconnects, the socket is disconnected like this: try { socket.Shutdown(SocketShutDown.Receive);
2
13746
by: Jean-Philippe Guyon | last post by:
Hello, I am trying to compile a class that uses socket using the Visual C++ ..NET compiler. I get the following error: ------ Build started: Project: infCommon, Configuration: Release Win32 ------ Compiling... cl : Command line warning D4029 : optimization is not available in the
4
4842
by: Ted | last post by:
Hi all, I am trying to learn C socket programming and I have a small program which is a UP client. The problem is, when I run the program, I get a runtime error - "Invalid Argument" - from a call to sendto. I was hoping that if someone has the time they could take a look at my code posted below and let me know what i'm doing wrong?
5
3687
by: John Sheppard | last post by:
Hi all, I am not sure that I am posting this in the right group but here it goes anyway. I am new to socket programming and I have been searching on the internet to the questions I am about to pose but have been unsuccessful in finding the answers so far. Either because my understanding of sockets isn't where it needs to be or my questions are too basic. My programming environment is Windows XP, Visual Studio .NET 2003 and C#. So here it...
1
3398
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows XP. About the architecture: I have a socket server dll that contains a class that handles connections for a given local ipaddress and port. This class(server) can be started or stopped by calls to the appropriate functions. The server class has...
5
4734
by: AtherMurtuzapurwala | last post by:
Hi All, I am doing socket programming. Client is in C#.Net 2003 and Server is in VC++ 6.0 When Server uses csoc class than it connect & communicate to client without any problem.... while it uses api on server side so it is not able to connect it throws an
4
3193
by: Marco Meoni | last post by:
Hi. I read the Gordon McMillan's "Socket Programming Howto". I tried to use the example in this howto but this doesn't work. The code is class mysocket: '''classe solamente dimostrativa - codificata per chiarezza, non per efficenza''' def __init__(self, sock=None): if sock is None: self.sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM) else:
8
4685
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In page_load event, I am using atl com component. Here one for loop is there. In this for loop, number of iterations are 1000, I can receive some data using com component. It is just set of some characters like
5
3311
by: gnanapoongothai | last post by:
hi, i am a beginner in socket programming in vc++. There is error poping up when the addr of the socket is compling, .\simple_socketsever.c(41): error: identifier "sockaddr_in" is undefined sockaddr_in service; ^ .\simple_socketsever.c(41): error: expected a ";" sockaddr_in service; ^
1
990
by: nagasrinivas05 | last post by:
hi all, i am using socket programming to display status using class socket my application is working fine when i set the port no as 8221 and when i use the same applcation in another location then it is throwing the error as "a request to send or receive the data was disallowed because the socket is not connected and (when sending a datagram socket using a sendto call) no address was supplied" . pls help me as soon as possible
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.