473,414 Members | 1,609 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,414 software developers and data experts.

Bind exception

eeh
Hi,

I got bind exception (Jave.ent.BindException: Cannot assign requested
address: JVM_BIND) when the following statement is executed.

ss=new ServerSocket(0x55,0,InetAddress.getByName("192.168 .0.8"));

The host 192.168.0.8 is on and can be pinged.

Could anyone tell me why?

When I change the stement to be

ss=new ServerSocket(0x55);

no exception is thrown.

Thanks!

Jul 17 '05 #1
5 4424
eeh wrote:
The host 192.168.0.8 is on and can be pinged.


But is it the IP address of the machine that's running the code?? It
should be...

--
Michael Banzon
http://michael.banzon.dk/
Jul 17 '05 #2
eeh
>
But is it the IP address of the machine that's running the code?? It
should be...


Not from the same computer, actually it is a network standalone device.

Jul 17 '05 #3
On 16 Mar 2005 00:32:49 -0800, eeh wrote:

But is it the IP address of the machine that's running the code?? It
should be...


Not from the same computer, actually it is a network standalone
device.


If your host doesn't have a network interface with that address, you
can't do it. A socket (Socket or Serversocket) can only bind to the
address of one of the host's network interfaces.

Specifying a portnumber alone works because the address defaults to
the wildcard address (0.0.0.0), which matches all of the host's
interfaces.

What are you trying to do?

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Jul 17 '05 #4
eeh
> If your host doesn't have a network interface with that address, you
can't do it. A socket (Socket or Serversocket) can only bind to the
address of one of the host's network interfaces.
The device does have network interface and the server socket is working

when no specified IP is given. Pinging to the device is successful.
What are you trying to do?


Actually the device is a parallel ethernet converter.

Jul 17 '05 #5
eeh
> > If your host doesn't have a network interface with that address,
you
can't do it. A socket (Socket or Serversocket) can only bind to the
address of one of the host's network interfaces.


OK, I get your meaning. The server socket cannot be applied to a IP
from a remote host.

Jul 17 '05 #6

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

Similar topics

6
by: Clarence Gardner | last post by:
I've got a problem that I don't see how to program around. A socket server that was running fine, today started getting an exception from the bind() call (errno 22, Invalid argument) and yet the...
4
by: 0k | last post by:
Hi everyone, I am trying to write a small app that sends multicast udp packets using a socket object. I have more than one NIC on my PC and the following code works OK only if I disable all the...
0
by: Rene | last post by:
I am getting the following error when I try to open one of my Forms on my project. This error only shows up when I open the form during design time (Visual Studio designer)!! It does not happen if...
3
by: david | last post by:
I have bind a dataset, DentistDataSet1, to TextBox, txtLastName, by set the textbox property (databindings--> simple binding--> ... -->LastName) and also bind it to a dropdown list, DropdownList1...
2
by: Ken Powers | last post by:
Hello everyone, I'm getting a strange error when I try to bind a combo box to a Dataset. Here's my code! Private Sub Get_Data() Try Dim sqlcmd = New SqlCommand("Select * from Utility order...
0
by: Ken Powers | last post by:
Hello everyone, Sorry about the repost, my second VB.NET App is done with the exception of this error. I'm getting a strange error when I try to bind a combo box to a Dataset. Here's my code! ...
3
by: sck10 | last post by:
Hello, I am trying to bind an arraylist to a FormView DropDownList control in the PreRender state. The error that I get is the following: Databinding methods such as Eval(), XPath(), and...
1
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
6
by: pretzla | last post by:
I have a PL/SQL script where I load data from a stored procedure into bind variables. Then, I insert that data from the bind variables into an Oracle table with a simple insert statement. The...
0
by: pbd22 | last post by:
Hi. I am returning to an old bit of code in our program and need to figure out how to sort my columns on bind. I am sorting on Date (mostly) and some other values. Problem is, the code is an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...
0
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...
0
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.