Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 529 results for
unknownhostexception
- Page 1
android & webservices via ksoap2 & https
Programming
Mobile Development
12 Years Ago
by benqus
… String host, int port, boolean autoClose) throws IOException,
UnknownHostException
{ return getSSLContext().getSocketFactory().createSocket(socket, host, port, autoClose… String host, int port, boolean autoClose) throws IOException,
UnknownHostException
{ return getSSLContext().getSocketFactory().createSocket(socket, host, port, autoClose);…
FTP Client / Server using RMI
Programming
Software Development
18 Years Ago
by lwinn213
…; public static void main(String[] args) throws RemoteException, FtpException,
UnknownHostException
{ String host; String port; String badhost; String error; … hostPort +" ..."; System.out.println(port); } catch (
UnknownHostException
uhe) { badhost = "The host computer name you have …
How can I implement stop and wait timeout resend which is multi thread..?
Programming
Software Development
14 Years Ago
by lkw8888
…// System.out.print(sa[i]); } } catch (
UnknownHostException
e) { e.printStackTrace(); } catch (SocketException e)…InetAddress.getLocalHost().getHostAddress()); //WIndow Frame } catch(
UnknownHostException
e) { e.printStackTrace(); } f.…
Re: FTP Client / Server using RMI
Programming
Software Development
18 Years Ago
by lwinn213
… int counter; public static void main(String[] args) throws RemoteException,
UnknownHostException
{ String host; String port; String badhost; String error;[/LEFT] …()); new RmiFtpServer(incoming,i).start(); i++; // } }[/LEFT] [LEFT] catch (
UnknownHostException
uhe) { badhost = "The host computer name you have specified…
Simple Chat Server
Programming
Software Development
14 Years Ago
by smoore
… command line argument public static void main (String[] args) throws
UnknownHostException
{ // variables int port = DEFAULT_PORT; ServerSocket serverSocket = null;… command line argument public static void main (String[] args) throws
UnknownHostException
{ // variables int port = DEFAULT_PORT; ServerSocket serverSocket = null;…
JAVA BufferedReader Refresh Help!
Programming
Software Development
13 Years Ago
by Hunter2379
…net.ServerSocket; import java.net.Socket; import java.net.
UnknownHostException
; import javax.swing.*; public class TextServer extends JPanel implements….setVisible(true); } public static void main(String[] args) throws
UnknownHostException
, IOException { InetAddress i = InetAddress.getLocalHost(); JOptionPane.showMessageDialog(null,"…
Re: Simple Chat Server
Programming
Software Development
14 Years Ago
by smoore
…java.net.Socket; import java.net.ServerSocket; import java.net.
UnknownHostException
; import java.util.Scanner; public class ChatServer { // set… command line argument public static void main (String[] args) throws
UnknownHostException
{ // variables int port = DEFAULT_PORT; ServerSocket serverSocket = null; Socket …
Problem with multiple thread when using System.out.print
Programming
Software Development
13 Years Ago
by purijatin
…net.InetAddress; import java.net.SocketException; import java.net.
UnknownHostException
; import java.util.Random; public class prac7 { …public static void main (String[] args) throws SocketException,
UnknownHostException
, IOException, InterruptedException { new prac7().go(); } void go() throws…
two android applications connected with TCP protocol
Programming
Mobile Development
9 Years Ago
by DanyLiz1902
…import java.net.Socket; import java.net.
UnknownHostException
; import java.nio.ByteBuffer; import android.…public void onClick(View view) { try {; getBytes(); } catch (
UnknownHostException
e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace…
Re: Networking Problem
Programming
Software Development
12 Years Ago
by danthevan
…net.ServerSocket; import java.net.Socket; import java.net.
UnknownHostException
; import java.util.logging.Level; import java.util.…quot; on Port: " + S.getLocalPort() + "\n"); } catch (
UnknownHostException
ex) { txtLog.append("Error while connecting, please try again…
Re: Networking Problem
Programming
Software Development
12 Years Ago
by danthevan
…net.ServerSocket; import java.net.Socket; import java.net.
UnknownHostException
; import java.util.logging.Level; import java.util.…; on Port: " + S.getLocalPort() + "\n"); } catch (
UnknownHostException
ex) { txtLog.append("Error while connecting, please try again…
java client server quiz. interesting!!!
Programming
Software Development
19 Years Ago
by Jackie001
…out.println("Failed connection to server") ; } } catch (
UnknownHostException
e) { System.out.println("Unknown Host ") ; e…out.println("Failed connection to server") ; } } catch (
UnknownHostException
e) { System.out.println("Unknown Host ") ; e…
MySql connection question.
Programming
Software Development
17 Years Ago
by ryy705
… underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.
UnknownHostException
MESSAGE: localost STACKTRACE: java.net.
UnknownHostException
: localost at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method…
Sending SMS from website over SMPP
Programming
Web Development
16 Years Ago
by Emret
….getIpnr(), getProp.getPort(), true); //conn.addObserver(this); } catch (
UnknownHostException
uhe) { logger.error("
UnknownHostException
" + uhe); uhe.printStackTrace(); System.exit(0); } retry…
About multi Threads. How can i implements the timeout Threads to Chatting program?
Programming
Software Development
14 Years Ago
by lkw8888
…myInet.getHostAddress()+" name "+myInet.getHostName()); } catch(
UnknownHostException
e) { System.out.println("InetAddress Error on …().getHostAddress()+" port "+server.getLocalPort()); } catch(
UnknownHostException
e) { System.out.println("Server Unknown Exception error…
server client send files string
Programming
Software Development
14 Years Ago
by breakid
…java.io.PrintWriter; import java.net.Socket; import java.net.
UnknownHostException
; /** * The client uses Socket to connect to a …socketReader = client.getInputStream(); socketWriter = new PrintWriter(client.getOutputStream()); } catch (
UnknownHostException
e) { System.out .println("Error setting up socket connection…
sending mail from servlets
Programming
Web Development
14 Years Ago
by alsoumhi
… SMTP host: smtp.mlabs.com; nested exception is: java.net.
UnknownHostException
: smtp.mlabs.com at com.sun.mail.smtp.SMTPTransport.openServer…) at EmailSenderDemo.main(EmailSenderDemo.java:53) Caused by: java.net.
UnknownHostException
: smtp.mlabs.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java…
Sending File in UDP program
Programming
Software Development
13 Years Ago
by AcidG3rm5
… = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); } catch (
UnknownHostException
e) { System.err.println("Don't know about…System.out.println("Connection closed."); } catch (
UnknownHostException
e) { System.err.println("Trying to connect…
Re: Sending File in UDP program
Programming
Software Development
13 Years Ago
by AcidG3rm5
… = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); } catch (
UnknownHostException
e) { System.err.println("Don't know about…System.out.println("Connection closed."); } catch (
UnknownHostException
e) { System.err.println("Trying to connect …
DateTime get program
Programming
Software Development
13 Years Ago
by DrApe1
… string retrieved: " + inStr); instream.close(); } catch(
UnknownHostException
e){ System.out.println("
UnknownHostException
"); } catch(IOException i){ System.out.println("…
array and for loop
Programming
Software Development
13 Years Ago
by Temmu
… java.io.IOException; import java.net.InetAddress; import java.net.
UnknownHostException
; class isup { public static void main (String args[]) throws…
UnknownHostException
, IOException{ String host = "server"; // pc or server name …
Connect to ftp using java
Programming
Software Development
13 Years Ago
by vallikasturi
… get the names of the files... But am getting an
UnknownHostException
when i gave the ip.. Following is my code [CODE… mentioned above.. Am getting the following error... [CODE]java.net.
UnknownHostException
: ftp.111.111.111.111 at java.net.PlainSocketImpl.connect…
problem in finding ip address using applet
Programming
Software Development
12 Years Ago
by Mona Ali
… java.net.SocketException; import java.net.
UnknownHostException
; public class sid_fari extends Applet implements …quot;MAC ADDress" +sb.toString(); repaint(); } } catch (
UnknownHostException
e) { e.printStackTrace(); } catch (SocketException e){ e.printStackTrace(); …
Networking Problem
Programming
Software Development
12 Years Ago
by danthevan
…io.IOException; import java.net.Socket; import java.net.
UnknownHostException
; import java.util.logging.Level; import java.util.…; on Port: " + S.getLocalPort() + "\n"); } catch (
UnknownHostException
ex) { txtLog.append("Error while connecting, please try again…
Reading integers from a text file and send them over UDP
Programming
Software Development
12 Years Ago
by igotaquestion
… end of main private void go() throws IOException, SocketException,
UnknownHostException
{ DatagramSocket dgSocket = new DatagramSocket(); InetAddress inAddr = InetAddress.getByName… end of main private void go() throws IOException, SocketException,
UnknownHostException
{ byte[] barray = new byte[4]; DatagramSocket dgSocket =…
Re: Reading integers from a text file and send them over UDP
Programming
Software Development
12 Years Ago
by DavidKroukamp
… end of main private void go() throws IOException, SocketException,
UnknownHostException
{ DatagramSocket dgSocket = new DatagramSocket(); InetAddress inAddr = InetAddress.getByName… end of main private void go() throws IOException, SocketException,
UnknownHostException
{ byte[] barray = new byte[4]; DatagramSocket dgSocket =…
Too many try-catch blocks
Programming
Software Development
11 Years Ago
by WDrago
…; import java.io.IOException; import java.net.
UnknownHostException
; import java.util.logging.Level; import java.… port); while (true) { try { iThx.connect(); } catch (
UnknownHostException
ex) { System.out.println("Cannot connect to " + …
ServerSocket not responding to connection
Programming
Software Development
11 Years Ago
by sirlink99
…InetSocketAddress; import java.net.Socket; import java.net.
UnknownHostException
; import java.awt.BorderLayout; import java.awt.Dimension;… port)); //sock.connect(InetSocketAddress.createUnresolved(ip, port)); } catch (
UnknownHostException
e) { // TODO Auto-generated catch block e.printStackTrace(); } …
UDP packets being blocked by router
Programming
Software Development
11 Years Ago
by Fedhell
…import java.net.SocketException; import java.net.
UnknownHostException
; import packet.Packet; //this is just… ip, 9877); clientSocket.send(sendPacket); clientSocket.close(); } catch (
UnknownHostException
e) { e.printStackTrace(); } catch (SocketException e) { e…
Android Client Server Communication
Programming
Mobile Development
11 Years Ago
by DJ-DOO
…import java.net.Socket; import java.net.
UnknownHostException
; import android.view.View; import android.….flush(); printwriter.close(); client.close(); // closing the connection } catch (
UnknownHostException
e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace();…
1
2
3
9
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC