The Artima Developer Community
Sponsored Link

Java Answers Forum
Server Socket IP

5 replies on 1 page. Most recent reply: Nov 5, 2003 10:56 PM by sabab

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
sabab

Posts: 34
Nickname: sabab
Registered: Aug, 2003

Server Socket IP Posted: Oct 29, 2003 1:33 AM
Reply to this message Reply
Advertisement
I have one server with two IP address 161.6.11.232 and 161.6.11.233
in this IIS is working on 161.6.11.232 with port 80.
I want to use the IP 161.6.11.233 with port 80 for my client to connect (Socket programming)

so How can i bind this 161.6.11.233 with the socket 80, so that i can create a server listener for handling client requests
my code is giving error

ServerSocket serverSocket = new ServerSocket(80,161.6.11.233);

How can i do this?

please help


sabab

Posts: 34
Nickname: sabab
Registered: Aug, 2003

Re: Server Socket IP Posted: Oct 30, 2003 8:07 AM
Reply to this message Reply
The follwing code is not giving error,
But i am able to run this programme after stopping the IIS only.
But my IIS is working on port 80 of 161.6.11.233

InetAddress Ipaddress=InetAddress.getByName("161.6.11.233
");
ServerSocket serverSocket = new ServerSocket(80,19,Ipaddress);

Please suggest

sabab

Posts: 34
Nickname: sabab
Registered: Aug, 2003

Re: Server Socket IP Posted: Oct 30, 2003 8:22 AM
Reply to this message Reply
A Mistake in my previous post

My IIS is working on port 80 of 161.6.11.232

sabab

Posts: 34
Nickname: sabab
Registered: Aug, 2003

Re: Server Socket IP Posted: Nov 4, 2003 7:13 AM
Reply to this message Reply
Sorry, i am again asking
please....

s

Posts: 23
Nickname: codemonkey
Registered: Nov, 2003

Re: Server Socket IP Posted: Nov 5, 2003 1:00 PM
Reply to this message Reply
sabab ,
If you are over here on a visa stealing american jobs,
you are on your own !

sabab

Posts: 34
Nickname: sabab
Registered: Aug, 2003

Re: Server Socket IP Posted: Nov 5, 2003 10:56 PM
Reply to this message Reply
The IP given is only an example,

Flat View: This topic has 5 replies on 1 page
Topic: Date Data Type Field Previous Topic   Next Topic Topic: how to dynamically read a very large file?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use